From: Michael Smith Date: Mon, 21 Jan 2013 18:40:35 +0000 (+0100) Subject: proresdec: support mixed interlaced/non-interlaced content X-Git-Tag: n1.2~21^2~373 X-Git-Url: https://git.videolan.org/?p=ffmpeg.git;a=commitdiff_plain;h=0881cbf314982cce8448bd12644ce2a6e0b8c576 proresdec: support mixed interlaced/non-interlaced content Set interlaced to false if we don't have an interlaced frame Signed-off-by: Luca Barbato --- diff --git a/libavcodec/proresdec.c b/libavcodec/proresdec.c index f7e32c998b..4b196f6d32 100644 --- a/libavcodec/proresdec.c +++ b/libavcodec/proresdec.c @@ -164,6 +164,8 @@ static int decode_frame_header(ProresContext *ctx, const uint8_t *buf, if (ctx->frame_type) { /* if interlaced */ ctx->picture.interlaced_frame = 1; ctx->picture.top_field_first = ctx->frame_type & 1; + } else { + ctx->picture.interlaced_frame = 0; } avctx->color_primaries = buf[14];