vc1: signal interlaced and tff flag to the consumer

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>
This commit is contained in:
Hendrik Leppkes 2012-01-13 22:14:36 +01:00 committed by Michael Niedermayer
parent b829da3639
commit 14ac47fcc7

View 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;