opusparse: fix frame size determination

https://bugzilla.gnome.org/show_bug.cgi?id=741321
This commit is contained in:
Vincent Penquerc'h 2014-12-15 15:21:50 +00:00
parent 631663b854
commit 79b56ebcc9

View file

@ -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];
}
}