From 14ac47fcc79b3c587af65e21be1da314882eeed0 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Fri, 13 Jan 2012 22:14:36 +0100 Subject: [PATCH] vc1: signal interlaced and tff flag to the consumer Reviewed-by: Derek Buitenhuis Reviewed-by: Mashiat Sarker Shakkhar Signed-off-by: Michael Niedermayer --- libavcodec/vc1dec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index 309194e911..4b6dcf295e 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;