Commit d6b145df authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

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.
parent d7212dac
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment