From 79b56ebcc9511a50d9fe9fbb93b48d5c2170bad8 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Mon, 15 Dec 2014 15:21:50 +0000 Subject: [PATCH] opusparse: fix frame size determination https://bugzilla.gnome.org/show_bug.cgi?id=741321 --- ext/opus/gstopusparse.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ext/opus/gstopusparse.c b/ext/opus/gstopusparse.c index 0f1bc97726..8ede3a3403 100644 --- a/ext/opus/gstopusparse.c +++ b/ext/opus/gstopusparse.c @@ -199,6 +199,11 @@ gst_opus_parse_handle_frame (GstBaseParse * base, /* for ad hoc framing, heed the framing, so we eat any padding */ payload_offset = packet_size; + } else { + /* Add up all the frame sizes found */ + int f; + for (f = 0; f < nframes; ++f) + payload_offset += frame_sizes[f]; } }