utvideo: mark interlaced frames as such
authorHendrik Leppkes <h.leppkes@gmail.com>
Thu, 21 Jun 2012 21:11:24 +0000 (21:11 +0000)
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>
Fri, 22 Jun 2012 15:45:51 +0000 (11:45 -0400)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
libavcodec/utvideo.c

index e5efa4a..471d85a 100644 (file)
@@ -499,6 +499,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;