projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7212da
)
qtmux: Fix last_dts tracking for raw audio and similar formats
author
Sebastian Dröge
<sebastian@centricular.com>
Mon, 10 Apr 2017 12:55:30 +0000
(15:55 +0300)
committer
Sebastian Dröge
<sebastian@centricular.com>
Mon, 10 Apr 2017 12:55:54 +0000
(15:55 +0300)
Accumulate the durations directly and don't scale yet another time by
the number of samples.
gst/isomp4/gstqtmux.c
patch
|
blob
|
history
diff --git
a/gst/isomp4/gstqtmux.c
b/gst/isomp4/gstqtmux.c
index
c4b9ff2
..
efcb96d
100644
(file)
--- 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);