GNOME Bugzilla – Bug 548831
matroska demuxer setting incorrect timestamps
Last modified: 2008-08-21 13:22:16 UTC
steps to reproduce: wget http://www.matroska.org/samples/mewmew/downloads/mewmew-vorbis-ssa.mkv gst-launch-0.10 filesrc location=mewmew-vorbis-ssa.mkv ! matroskademux ! audio/x-vorbis ! fakesink -v the sample plays fine with gst-launch-0.10 playbin - the audiosink seems to compensate for the incorrect timestamps i discovered this while trying to convert the audio but ended up with heavy dissortions while playbin worked fine.
2008-08-21 Sebastian Dröge <sebastian.droege@collabora.co.uk> * gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream): Don't calculate the default duration of a frame from the audio sampling rate. This only works for raw audio if every frame contains a single sample and results in broken buffer durations for other formats if no specified default duration is given or the blocks have no duration. Fixes bug #548831.
2008-08-21 Sebastian Dröge <sebastian.droege@collabora.co.uk> * gst/matroska/matroska-demux.c: (gst_matroska_demux_parse_blockgroup_or_simpleblock): If the duration of a block is unknown only use the timestamp for the first lace and use GST_CLOCK_TIME_NONE as duration for the following laces. Otherwise every lace has the same timestamp which leads to various problems. Really fixes bug #548831.