From 3dc1ef35b1a923bcd4bc460ac4e8fd731644c7c2 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Tue, 29 May 2012 17:24:02 +0100 Subject: [PATCH] opusdec: read gain from the right place in the header It's at byte offset 16, not 14. --- ext/opus/gstopusdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c index 15bec7b..b0f33ae 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)", -- 2.7.4