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.
This commit is contained in:
Vincent Penquerc'h 2012-05-25 22:20:07 +01:00
parent 12f24874aa
commit 6ea05840a4

View file

@ -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;
}
}