mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
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:
parent
12f24874aa
commit
6ea05840a4
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue