opusdec: read gain from the right place in the header

It's at byte offset 16, not 14.
This commit is contained in:
Vincent Penquerc'h 2012-05-29 17:24:02 +01:00
parent 2213a44214
commit 2372697fd5

View file

@ -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)",