[FFmpeg-cvslog] vc1: signal interlaced and tff flag to the consumer

Hendrik Leppkes git at videolan.org
Thu Jun 21 19:49:41 CEST 2012


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Fri Jan 13 22:14:36 2012 +0100| [14ac47fcc79b3c587af65e21be1da314882eeed0] | committer: Michael Niedermayer

vc1: signal interlaced and tff flag to the consumer

Reviewed-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
Reviewed-by: Mashiat Sarker Shakkhar <mashiat.sarker at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/vc1dec.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index 309194e..4b6dcf2 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -5542,6 +5542,9 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data,
         goto err;
     }
 
+    v->s.current_picture_ptr->f.interlaced_frame = (v->fcm != PROGRESSIVE);
+    v->s.current_picture_ptr->f.top_field_first  = v->tff;
+
     s->me.qpel_put = s->dsp.put_qpel_pixels_tab;
     s->me.qpel_avg = s->dsp.avg_qpel_pixels_tab;
 



More information about the ffmpeg-cvslog mailing list