From 6ea05840a4ede23f1919bbcaea825c7cdb9a360b Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Fri, 25 May 2012 22:20:07 +0100 Subject: [PATCH] opusparse: heed test vector framing to eat any padding This fixes parsing on one particular test vector where payload data is smaller than the actual audio payload. --- ext/opus/gstopusparse.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/opus/gstopusparse.c b/ext/opus/gstopusparse.c index dfeafb2f92..097062f832 100644 --- a/ext/opus/gstopusparse.c +++ b/ext/opus/gstopusparse.c @@ -200,6 +200,9 @@ gst_opus_parse_handle_frame (GstBaseParse * base, packet_offset = 8; data += packet_offset; + + /* for ad hoc framing, heed the framing, so we eat any padding */ + payload_offset = packet_size; } }