utvideo: mark interlaced frames as such
authorHendrik Leppkes <h.leppkes@gmail.com>
Tue, 3 Jan 2012 17:17:43 +0000 (18:17 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 21 Jun 2012 09:47:00 +0000 (11:47 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/utvideo.c

index ead192b..59ba755 100644 (file)
@@ -496,6 +496,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
 
     c->pic.key_frame = 1;
     c->pic.pict_type = AV_PICTURE_TYPE_I;
+    c->pic.interlaced_frame = !!c->interlaced;
+
     *data_size = sizeof(AVFrame);
     *(AVFrame*)data = c->pic;