mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
opusdec: read gain from the right place in the header
It's at byte offset 16, not 14.
This commit is contained in:
parent
209e3c5e39
commit
3dc1ef35b1
1 changed files with 1 additions and 1 deletions
|
@ -277,7 +277,7 @@ gst_opus_dec_parse_header (GstOpusDec * dec, GstBuffer * buf)
|
|||
|
||||
dec->n_channels = data[9];
|
||||
dec->pre_skip = GST_READ_UINT16_LE (data + 10);
|
||||
dec->r128_gain = GST_READ_UINT16_LE (data + 14);
|
||||
dec->r128_gain = GST_READ_UINT16_LE (data + 16);
|
||||
dec->r128_gain_volume = gst_opus_dec_get_r128_volume (dec->r128_gain);
|
||||
GST_INFO_OBJECT (dec,
|
||||
"Found pre-skip of %u samples, R128 gain %d (volume %f)",
|
||||
|
|
Loading…
Reference in a new issue