From 2fe279f9f9116bf9afd9f11142e17b140654c433 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Wed, 10 Oct 2007 20:31:42 +0000 Subject: [PATCH] Set pict->interlaced_frame if returned frame is MBAFF or PAFF. Originally committed as revision 10703 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h264.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 6b97622bc06..ffbf630bb59 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -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 -- 2.39.2