p7zip: assorted fixes
[oi-userland.git] / components / encumbered / gst-plugins-bad / patches / 0017-opusdec-read-gain-from-the-right-place-in-the-header.patch
blobb3d0c2699c5ecefeca668235ab0aeb0d9b72fe76
1 From 8767a624f027e6c762d0eeed16d4fafd85ba858f Mon Sep 17 00:00:00 2001
2 From: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>
3 Date: Tue, 29 May 2012 17:24:02 +0100
4 Subject: [PATCH 17/20] opusdec: read gain from the right place in the header
6 It's at byte offset 16, not 14.
7 ---
8 ext/opus/gstopusdec.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
11 diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c
12 index 9fb397c..65ecb06 100644
13 --- a/ext/opus/gstopusdec.c
14 +++ b/ext/opus/gstopusdec.c
15 @@ -251,7 +251,7 @@ gst_opus_dec_parse_header (GstOpusDec * dec, GstBuffer * buf)
17 dec->n_channels = data[9];
18 dec->pre_skip = GST_READ_UINT16_LE (data + 10);
19 - dec->r128_gain = GST_READ_UINT16_LE (data + 14);
20 + dec->r128_gain = GST_READ_UINT16_LE (data + 16);
21 dec->r128_gain_volume = gst_opus_dec_get_r128_volume (dec->r128_gain);
22 GST_INFO_OBJECT (dec,
23 "Found pre-skip of %u samples, R128 gain %d (volume %f)",
24 --
25 1.7.10.4