From af6fdebeb5c7c2e73521a8f237d7c8ac7d9c61a0 Mon Sep 17 00:00:00 2001 From: Christophe Thommeret Date: Tue, 24 Nov 2009 02:52:15 +0100 Subject: vdpau_mpeg12 pts fix Fixes audio/video sync in mpeg12 streams. --- src/video_dec/libvdpau/vdpau_mpeg12.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/video_dec/libvdpau/vdpau_mpeg12.c b/src/video_dec/libvdpau/vdpau_mpeg12.c index d12557ced..09399ac3b 100644 --- a/src/video_dec/libvdpau/vdpau_mpeg12.c +++ b/src/video_dec/libvdpau/vdpau_mpeg12.c @@ -794,7 +794,8 @@ static void vdpau_mpeg12_decode_data (video_decoder_t *this_gen, buf_element_t * if ( !buf->size ) return; - seq->cur_pts = buf->pts; + if ( buf->pts ) + seq->cur_pts = buf->pts; int size = seq->bufpos+buf->size; if ( seq->bufsize < size ) { -- cgit v1.2.3