Commit 0881cbf3 authored by Michael Smith's avatar Michael Smith Committed by Luca Barbato

proresdec: support mixed interlaced/non-interlaced content

Set interlaced to false if we don't have an interlaced frame
Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent 4a73fbd9
...@@ -164,6 +164,8 @@ static int decode_frame_header(ProresContext *ctx, const uint8_t *buf, ...@@ -164,6 +164,8 @@ static int decode_frame_header(ProresContext *ctx, const uint8_t *buf,
if (ctx->frame_type) { /* if interlaced */ if (ctx->frame_type) { /* if interlaced */
ctx->picture.interlaced_frame = 1; ctx->picture.interlaced_frame = 1;
ctx->picture.top_field_first = ctx->frame_type & 1; ctx->picture.top_field_first = ctx->frame_type & 1;
} else {
ctx->picture.interlaced_frame = 0;
} }
avctx->color_primaries = buf[14]; avctx->color_primaries = buf[14];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment