qtdemux: Add a minimum buffer size for raw audio to not output one buffer per frame
authorSebastian Dröge <sebastian@centricular.com>
Mon, 13 Jan 2020 09:55:42 +0000 (11:55 +0200)
committerSebastian Dröge <slomo@coaxion.net>
Fri, 14 Feb 2020 08:48:01 +0000 (08:48 +0000)
commitbe1c97d3c920750c36a5ee04cc52166f4260ba04
tree27004a2e86b7a9f439b4833ed1b15568da6bd21a
parent1471100f37b6cf2382baaecb9d79f86260006829
qtdemux: Add a minimum buffer size for raw audio to not output one buffer per frame

Outputting 48000 buffers per second is not a good idea performance-wise.
If a container sample is less than 1024 raw audio frames, combine
multiple samples to get at least 1024 raw audio samples as long as
they're stored contiguous in the file.

For the other direction, if a container sample contains more than 4096
samples there is already code for splitting them up.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=692750
gst/isomp4/qtdemux.c