diff options
author | Christophe Thommeret <hftom@free.fr> | 2009-02-23 16:03:44 +0000 |
---|---|---|
committer | Christophe Thommeret <hftom@free.fr> | 2009-02-23 16:03:44 +0000 |
commit | 48450216ea572bdba3d34aa9e4ccd64db16a2d31 (patch) | |
tree | 7e095906c45c11f8c291146c563e7137b20a2534 | |
parent | bc5c244b04c756001720060c8b7a695d3f4a5d3d (diff) | |
download | xine-lib-48450216ea572bdba3d34aa9e4ccd64db16a2d31.tar.gz xine-lib-48450216ea572bdba3d34aa9e4ccd64db16a2d31.tar.bz2 |
Fix TFF/BFF.
-rw-r--r-- | src/libvdpau/vdpau_mpeg12.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/libvdpau/vdpau_mpeg12.c b/src/libvdpau/vdpau_mpeg12.c index 8141a202d..175091130 100644 --- a/src/libvdpau/vdpau_mpeg12.c +++ b/src/libvdpau/vdpau_mpeg12.c @@ -181,7 +181,7 @@ static void reset_picture( picture_t *pic ) pic->vdp_infos2.intra_vlc_format = pic->vdp_infos.intra_vlc_format = 0; pic->vdp_infos2.alternate_scan = pic->vdp_infos.alternate_scan = 0; pic->vdp_infos2.q_scale_type = pic->vdp_infos.q_scale_type = 0; - pic->vdp_infos2.top_field_first = pic->vdp_infos.top_field_first = 0; + pic->vdp_infos2.top_field_first = pic->vdp_infos.top_field_first = 1; pic->slices_count = 0; pic->slices_count2 = 0; pic->slices_pos = 0; @@ -689,10 +689,7 @@ static void decode_picture( vdpau_mpeg12_decoder_t *vd ) img->pts = seq->seq_pts; img->bad_frame = 0; img->duration = seq->video_step; - if ( pic->vdp_infos.top_field_first || pic->vdp_infos.picture_structure==PICTURE_FRAME ) - img->top_field_first = 1; - else - img->top_field_first = 0; + img->top_field_first = pic->vdp_infos.top_field_first; /* progressive_frame is unreliable with most mpeg2 streams */ if ( pic->vdp_infos.picture_structure!=PICTURE_FRAME ) |