[MPlayer-dev-eng] [PATCH] Remove bogus Vorbis pts values from Matroska demuxer

Uoti Urpala uoti.urpala at pp1.inet.fi
Fri Apr 7 12:36:57 CEST 2006


The Matroska demuxer currently gives the same pts value for each laced
Vorbis packet. These bogus pts values make av sync unstable. The
attached patch removes pts values from packets other than the first
laced packet when the track has no default packet duration (there is no
way to give them correct timestamps other than decoding the packets and
calculating the length of the resulting audio).

Are there any cases where default_duration would be 0 and giving all the
packets the same pts value would be the right thing to do? If there are
then this fix could be changed to affect Vorbis streams only.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove_bogus_pts.diff
Type: text/x-patch
Size: 908 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060407/6fb4927a/attachment.bin>


More information about the MPlayer-dev-eng mailing list