diff options
author | Christophe Thommeret <hftom@free.fr> | 2009-11-24 02:52:15 +0100 |
---|---|---|
committer | Christophe Thommeret <hftom@free.fr> | 2009-11-24 02:52:15 +0100 |
commit | af6fdebeb5c7c2e73521a8f237d7c8ac7d9c61a0 (patch) | |
tree | 47d51ec50fa40b9550d9775d9e5e9eed8b3bb209 | |
parent | 555521bd0843a42e06876c8d36802caae94c7c8b (diff) | |
download | xine-lib-af6fdebeb5c7c2e73521a8f237d7c8ac7d9c61a0.tar.gz xine-lib-af6fdebeb5c7c2e73521a8f237d7c8ac7d9c61a0.tar.bz2 |
vdpau_mpeg12 pts fix
Fixes audio/video sync in mpeg12 streams.
-rw-r--r-- | src/video_dec/libvdpau/vdpau_mpeg12.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 ) { |