summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristophe Thommeret <hftom@free.fr>2009-01-25 13:06:41 +0000
committerChristophe Thommeret <hftom@free.fr>2009-01-25 13:06:41 +0000
commit7d6efe0205f1035e6c48c5a924432d34bc83bb36 (patch)
tree9fbe2be4eee4f602dde3bdb69b0a6988e8698bf3 /src
parent79b351f83f2af0cadb1b076c060d1515c1f0a5b5 (diff)
downloadxine-lib-7d6efe0205f1035e6c48c5a924432d34bc83bb36.tar.gz
xine-lib-7d6efe0205f1035e6c48c5a924432d34bc83bb36.tar.bz2
PTS fix.
Diffstat (limited to 'src')
-rw-r--r--src/libvdpau/vdpau_mpeg12.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libvdpau/vdpau_mpeg12.c b/src/libvdpau/vdpau_mpeg12.c
index 31cc891bb..ee63b5fa7 100644
--- a/src/libvdpau/vdpau_mpeg12.c
+++ b/src/libvdpau/vdpau_mpeg12.c
@@ -695,6 +695,7 @@ static void decode_picture( vdpau_mpeg12_decoder_t *vd )
decode_render( vd, accel );
+ img->pts = seq->seq_pts;
img->bad_frame = 0;
img->duration = seq->video_step;
if ( pic->vdp_infos.top_field_first || pic->vdp_infos.picture_structure==PICTURE_FRAME )
@@ -717,16 +718,16 @@ static void decode_picture( vdpau_mpeg12_decoder_t *vd )
}
seq->forward_ref = seq->backward_ref;
if ( seq->forward_ref && !seq->forward_ref->drawn ) {
- seq->forward_ref->pts = seq->seq_pts;
+ //seq->forward_ref->pts = seq->seq_pts;
seq->forward_ref->draw( seq->forward_ref, vd->stream );
- //printf( "vdpau_mpeg12: drawn reference image with pts=%lld\n", seq->forward_ref->pts );
+ printf( "vdpau_mpeg12: drawn reference image with pts=%lld\n", seq->forward_ref->pts );
}
seq->backward_ref = img;
}
else {
- img->pts = seq->seq_pts;
+ //img->pts = seq->seq_pts;
img->draw( img, vd->stream );
- //printf( "vdpau_mpeg12: drawn image with pts=%lld\n", img->pts );
+ printf( "vdpau_mpeg12: drawn image with pts=%lld\n", img->pts );
img->free( img );
//printf("vdpau_mpeg12: freed B image %d\n", img );
}