summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristophe Thommeret <hftom@free.fr>2009-01-23 09:19:11 +0000
committerChristophe Thommeret <hftom@free.fr>2009-01-23 09:19:11 +0000
commit431ccd81e0c1bd30241731b6eec599058dbd5342 (patch)
tree32f0951ec6434a0f21fcd0ee33dd3dd9b2f4c5a4 /src
parenta56dfc47addd295bd773ab3df9e64ddcc4224b6f (diff)
downloadxine-lib-431ccd81e0c1bd30241731b6eec599058dbd5342.tar.gz
xine-lib-431ccd81e0c1bd30241731b6eec599058dbd5342.tar.bz2
Get pts at picture start. May fix a/v sync on some ts.
Diffstat (limited to 'src')
-rw-r--r--src/libvdpau/vdpau_mpeg12.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libvdpau/vdpau_mpeg12.c b/src/libvdpau/vdpau_mpeg12.c
index c18b35510..31cc891bb 100644
--- a/src/libvdpau/vdpau_mpeg12.c
+++ b/src/libvdpau/vdpau_mpeg12.c
@@ -332,6 +332,10 @@ static void picture_header( sequence_t *sequence, uint8_t *buf, int len )
if ( sequence->picture.state!=WANT_HEADER )
return;
+ if ( sequence->cur_pts ) {
+ sequence->seq_pts = sequence->cur_pts;
+ }
+
if ( sequence->profile==VDP_DECODER_PROFILE_MPEG1 )
sequence->picture.vdp_infos.picture_structure = PICTURE_FRAME;
@@ -685,6 +689,7 @@ static void decode_picture( vdpau_mpeg12_decoder_t *vd )
seq->backward_ref = NULL;
vd->decoder = VDP_INVALID_HANDLE;
}
+
img->drawn = 0;
//printf("vdpau_mpeg12: .. got image %d\n", img);