[Mplayer-advusers] Fw: [MPlayer-users] Bug and fix in d_video->pts counter

Attila Kinali kinali at gmx.net
Wed Feb 13 23:50:07 CET 2002


Begin forwarded message:

Date: Wed, 13 Feb 2002 22:45:54 +0100
From: Pascal Havé <have at ann.jussieu.fr>
To: mplayer-users at mplayerhq.hu
Subject: [MPlayer-users] Bug and fix in d_video->pts counter


[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


[in libmpdemux/video.c line 250]

When demuxer->file_format==DEMUXER_TYPE_MPEG_ES, the pts counter is not 
increased by frame_time after decoding.

so, a simple fix may be :

if(demuxer->file_format==DEMUXER_TYPE_MPEG_PS || 
   demuxer->file_format==DEMUXER_TYPE_MPEG_ES) d_video->pts+=frame_time;

(This is be very usefull for subtitles !)

HP.
- -- 
| Pascal Havé
| Laboratoire Jacques-Louis Lions
| Université Pierre et Marie Curie
| Boite courrier 187, 75252  Paris cedex 05 FRANCE
| (express mail) 175 rue du Chevaleret, 75013 Paris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8at6SmhLInsKdD4IRAtOKAKDNr184aquZ7xpuAAI6sBilGbUclwCg32Ja
gBfX+Zo9gu+UnB20mU7GORY=
=o9hV
-----END PGP SIGNATURE-----

_______________________________________________
RTFM!!!  http://www.MPlayerHQ.hu/DOCS
Search:  http://www.MPlayerHQ.hu/cgi-bin/htsearch
http://mplayerhq.hu/mailman/listinfo/mplayer-users



-- 
I am a moslem, i am a terrorist.



More information about the MPlayer-advusers mailing list