p7zip: assorted fixes
[oi-userland.git] / components / encumbered / gst-plugins-bad / patches / 0015-opusparse-heed-test-vector-framing-to-eat-any-paddin.patch
blob59d9088494a3fe8ede1ed3945183282173be117c
1 From 88c96c2baad14ba5c7b6bd233be2c7f1fc0a2c2d Mon Sep 17 00:00:00 2001
2 From: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>
3 Date: Fri, 25 May 2012 22:16:30 +0100
4 Subject: [PATCH 15/20] opusparse: heed test vector framing to eat any padding
6 This fixes parsing on one particular test vector where payload
7 data is smaller than the actual audio payload.
8 ---
9 ext/opus/gstopusparse.c | 3 +++
10 1 file changed, 3 insertions(+)
12 diff --git a/ext/opus/gstopusparse.c b/ext/opus/gstopusparse.c
13 index 472e7b0..8d18211 100644
14 --- a/ext/opus/gstopusparse.c
15 +++ b/ext/opus/gstopusparse.c
16 @@ -193,6 +193,9 @@ gst_opus_parse_check_valid_frame (GstBaseParse * base,
18 packet_offset = 8;
19 data += packet_offset;
21 + /* for ad hoc framing, heed the framing, so we eat any padding */
22 + payload_offset = packet_size;
25 if (is_header) {
26 --
27 1.7.10.4