summaryrefslogtreecommitdiff
path: root/ext/opus/gstopusparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opus/gstopusparse.c')
-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];
}
}