mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
matroskademux: Add comment about Opus clipping
https://bugzilla.gnome.org/show_bug.cgi?id=793523
This commit is contained in:
parent
2d774554e9
commit
a5e93b7062
1 changed files with 7 additions and 0 deletions
|
@ -4057,6 +4057,13 @@ gst_matroska_demux_parse_blockgroup_or_simpleblock (GstMatroskaDemux * demux,
|
||||||
GST_BUFFER_PTS (sub) -= stream->codec_delay;
|
GST_BUFFER_PTS (sub) -= stream->codec_delay;
|
||||||
} else {
|
} else {
|
||||||
GST_BUFFER_PTS (sub) = 0;
|
GST_BUFFER_PTS (sub) = 0;
|
||||||
|
|
||||||
|
/* Opus GstAudioClippingMeta units are scaled by 48000/sample_rate.
|
||||||
|
That is, if a Opus track has audio encoded at 24000 Hz and 132
|
||||||
|
samples need to be clipped, GstAudioClippingMeta.start will be
|
||||||
|
set to 264. (This is also the case for buffer offsets.)
|
||||||
|
Opus sample rates are always divisors of 48000 Hz, which is the
|
||||||
|
maximum allowed sample rate. */
|
||||||
start_clip =
|
start_clip =
|
||||||
gst_util_uint64_scale_round (stream->codec_delay, 48000,
|
gst_util_uint64_scale_round (stream->codec_delay, 48000,
|
||||||
GST_SECOND);
|
GST_SECOND);
|
||||||
|
|
Loading…
Reference in a new issue