From 08b37241e90cddc8d1db6d0aaf6fbb602bd61ae1 Mon Sep 17 00:00:00 2001 From: Julian Scheel Date: Tue, 23 Dec 2008 18:04:00 +0000 Subject: Set H.264 progressive_frame_flag; follow it in video_out_vdpau. (Maybe following the flag is not a good idea for mpeg2...) --- src/libvdpau/vdpau_h264.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libvdpau') diff --git a/src/libvdpau/vdpau_h264.c b/src/libvdpau/vdpau_h264.c index 0d55abbc6..81932e096 100644 --- a/src/libvdpau/vdpau_h264.c +++ b/src/libvdpau/vdpau_h264.c @@ -448,6 +448,11 @@ static void vdpau_h264_decode_data (video_decoder_t *this_gen, img->bad_frame = 0; + if(!pic.field_pic_flag && !pic.mb_adaptive_frame_field_flag) + img->progressive_frame = 1; + else + img->progressive_frame = 0; + struct decoded_picture *decoded_pic = NULL; if(pic.is_reference) { if(!slc->field_pic_flag || !this->wait_for_bottom_field) { -- cgit v1.2.3