summaryrefslogtreecommitdiff
path: root/ext/opus
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2012-05-29 17:24:02 +0100
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2012-05-29 17:24:33 +0100
commit2372697fd56f5b3074e70120d790ce6eed378782 (patch)
treeefbe6bb0c3b9a24701d71d1060cd3723dda7374e /ext/opus
parent2213a44214763f2f8097d33b593fb71197c9fda9 (diff)
downloadgstreamer-plugins-bad-2372697fd56f5b3074e70120d790ce6eed378782.tar.gz
opusdec: read gain from the right place in the header
It's at byte offset 16, not 14.
Diffstat (limited to 'ext/opus')
-rw-r--r--ext/opus/gstopusdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c
index 15bec7b42..b0f33ae74 100644
--- a/ext/opus/gstopusdec.c
+++ b/ext/opus/gstopusdec.c
@@ -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)",