proresdec: support mixed interlaced/non-interlaced content
authorMichael Smith <msmith@rdio.com>
Mon, 21 Jan 2013 18:40:35 +0000 (19:40 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 22 Jan 2013 04:40:57 +0000 (05:40 +0100)
Set interlaced to false if we don't have an interlaced frame

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/proresdec.c

index f7e32c9..4b196f6 100644 (file)
@@ -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];