diff options
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2014-12-15 15:21:50 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2014-12-15 17:03:24 +0000 |
commit | dd2aa4c08118f6ebce91eefc847de2b089e9dc89 (patch) | |
tree | 122aa666f2ec247c307ae8c70f2146d35e2cab3c | |
parent | e67cd1c1e0ce1d47e08da2fe211048f51858b2db (diff) | |
download | gstreamer-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.c | 5 |
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]; } } |