GNOME Bugzilla – Bug 735832
flacdec: merge small decoded audio buffers
Last modified: 2014-10-30 12:11:54 UTC
Created attachment 285041 [details] [review] flacdec: merge small decoded audio buffers FLAC files with high bitrate and small block sizes cause large amounts of data to be sent in small buffers, causing unnecessary CPU use. This patch merges decoded output if the buffers are less than 20 ms (hardcoded here). It breaks the expectation that there is a buffer out for a buffer in, however, which may be unwanted.
In this scenario do you get multiple flac frames as input in one single buffer?
Comment on attachment 285041 [details] [review] flacdec: merge small decoded audio buffers Also this should probably be handled by the GstAudioDecoder base class. It already has code for that in gst_audio_decoder_output()
(The reason for my question was latency btw).
(In reply to comment #1) > In this scenario do you get multiple flac frames as input in one single buffer? Logs show one buffer sent to flacdec for each FLAC frame.
This is invalid, since the ability actually already exists in the base class.