summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 )