summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorReinhard Nißl <rnissl@gmx.de>2010-01-20 23:56:18 +0100
committerReinhard Nißl <rnissl@gmx.de>2010-01-20 23:56:18 +0100
commit8a84d0783ceaa52a31dfb6acd60b303fac192985 (patch)
tree3d7ade72c855169f0960638c2bcad7aa3b7da643 /src
parenta4f664639acceb32abfcbd49b62bb5a664c05f02 (diff)
downloadxine-lib-8a84d0783ceaa52a31dfb6acd60b303fac192985.tar.gz
xine-lib-8a84d0783ceaa52a31dfb6acd60b303fac192985.tar.bz2
vdpau_mpeg12: attach a PTS just once to img
Without resetting the buffered PTS it happens that the same PTS gets attached to multiple images which is wrong.
Diffstat (limited to 'src')
-rw-r--r--src/video_dec/libvdpau/vdpau_mpeg12.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_dec/libvdpau/vdpau_mpeg12.c b/src/video_dec/libvdpau/vdpau_mpeg12.c
index 9aab77b4d..e7279a870 100644
--- a/src/video_dec/libvdpau/vdpau_mpeg12.c
+++ b/src/video_dec/libvdpau/vdpau_mpeg12.c
@@ -257,6 +257,7 @@ static void sequence_header( vdpau_mpeg12_decoder_t *this_gen, uint8_t *buf, int
if ( sequence->cur_pts ) {
sequence->seq_pts = sequence->cur_pts;
+ sequence->cur_pts = 0;
}
bits_reader_set( &sequence->br, buf );
@@ -348,6 +349,7 @@ static void picture_header( sequence_t *sequence, uint8_t *buf, int len )
if ( sequence->cur_pts ) {
sequence->seq_pts = sequence->cur_pts;
+ sequence->cur_pts = 0;
}
if ( sequence->profile==VDP_DECODER_PROFILE_MPEG1 )