From fcf7369327ce8a1362e49bb289b72dc832e78969 Mon Sep 17 00:00:00 2001 From: Christophe Thommeret Date: Sat, 4 Apr 2009 20:09:40 +0100 Subject: Pts fix (match libmpeg2). --- src/libvdpau/vdpau_mpeg12.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libvdpau/vdpau_mpeg12.c b/src/libvdpau/vdpau_mpeg12.c index 8443403c7..89b42bb0e 100644 --- a/src/libvdpau/vdpau_mpeg12.c +++ b/src/libvdpau/vdpau_mpeg12.c @@ -704,7 +704,8 @@ static void decode_picture( vdpau_mpeg12_decoder_t *vd ) decode_render( vd, accel ); img->drawn = 0; - img->pts = (pic->vdp_infos.picture_coding_type==I_FRAME) ? seq->seq_pts : 0; + img->pts = seq->seq_pts; + seq->seq_pts = 0; /* reset */ img->bad_frame = 0; img->duration = seq->video_step; img->top_field_first = pic->vdp_infos.top_field_first; -- cgit v1.2.3