From 8a84d0783ceaa52a31dfb6acd60b303fac192985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reinhard=20Ni=C3=9Fl?= Date: Wed, 20 Jan 2010 23:56:18 +0100 Subject: 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. --- src/video_dec/libvdpau/vdpau_mpeg12.c | 2 ++ 1 file changed, 2 insertions(+) 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 ) -- cgit v1.2.3