Set pict->interlaced_frame if returned frame is MBAFF or PAFF.
authorCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Wed, 10 Oct 2007 20:31:42 +0000 (20:31 +0000)
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Wed, 10 Oct 2007 20:31:42 +0000 (20:31 +0000)
Originally committed as revision 10703 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h264.c

index 6b97622..ffbf630 100644 (file)
@@ -7843,6 +7843,7 @@ static int decode_frame(AVCodecContext *avctx,
     /* we substract 1 because it is added on utils.c    */
     avctx->frame_number = s->picture_number - 1;
 #endif
+    pict->interlaced_frame = FIELD_OR_MBAFF_PICTURE;
     return get_consumed_bytes(s, buf_index, buf_size);
 }
 #if 0