vc1: signal interlaced and tff flag to the consumer
authorHendrik Leppkes <h.leppkes@gmail.com>
Fri, 13 Jan 2012 21:14:36 +0000 (22:14 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 21 Jun 2012 17:49:37 +0000 (19:49 +0200)
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Reviewed-by: Mashiat Sarker Shakkhar <mashiat.sarker@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/vc1dec.c

index 309194e..4b6dcf2 100644 (file)
@@ -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;