[FFmpeg-cvslog] utvideo: mark interlaced frames as such

Hendrik Leppkes git at videolan.org
Fri Jun 22 22:36:34 CEST 2012


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Thu Jun 21 21:11:24 2012 +0000| [f6b4624fcf9a8f4966b495b9c769ff0796839d57] | committer: Derek Buitenhuis

utvideo: mark interlaced frames as such

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f6b4624fcf9a8f4966b495b9c769ff0796839d57
---

 libavcodec/utvideo.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/utvideo.c b/libavcodec/utvideo.c
index e5efa4a..471d85a 100644
--- a/libavcodec/utvideo.c
+++ b/libavcodec/utvideo.c
@@ -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;
 



More information about the ffmpeg-cvslog mailing list