mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
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.
This commit is contained in:
parent
d7212dac2e
commit
d6b145df5f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue