summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2014-12-15 15:21:50 +0000
committerTim-Philipp Müller <tim@centricular.com>2014-12-15 17:03:24 +0000
commitdd2aa4c08118f6ebce91eefc847de2b089e9dc89 (patch)
tree122aa666f2ec247c307ae8c70f2146d35e2cab3c
parente67cd1c1e0ce1d47e08da2fe211048f51858b2db (diff)
downloadgstreamer-plugins-bad-dd2aa4c08118f6ebce91eefc847de2b089e9dc89.tar.gz
opusparse: fix frame size determination
https://bugzilla.gnome.org/show_bug.cgi?id=741321
-rw-r--r--ext/opus/gstopusparse.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/opus/gstopusparse.c b/ext/opus/gstopusparse.c
index 0f1bc9772..8ede3a340 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];
}
}