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.
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,
19 data += packet_offset;
21 + /* for ad hoc framing, heed the framing, so we eat any padding */
22 + payload_offset = packet_size;