From: Sebastian Dröge Date: Mon, 10 Apr 2017 12:55:30 +0000 (+0300) Subject: qtmux: Fix last_dts tracking for raw audio and similar formats X-Git-Tag: 1.12.2~64 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d6b145df5f84d4ba8f151aa7fda2e6dd4eb74173;p=platform%2Fupstream%2Fgst-plugins-good.git qtmux: Fix last_dts tracking for raw audio and similar formats Accumulate the durations directly and don't scale yet another time by the number of samples. --- diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c index c4b9ff2..efcb96d 100644 --- a/gst/isomp4/gstqtmux.c +++ b/gst/isomp4/gstqtmux.c @@ -3339,7 +3339,7 @@ gst_qt_mux_add_buffer (GstQTMux * qtmux, GstQTPad * pad, GstBuffer * buf) /* timescale = samplerate */ scaled_duration = 1; - pad->last_dts += duration * nsamples; + pad->last_dts += duration; } else { nsamples = 1; sample_size = gst_buffer_get_size (last_buf);