mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-04-25 08:56:59 +08:00
swr: move silence buffer to context to avoid per use malloc/free
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -113,6 +113,7 @@ struct SwrContext {
|
||||
AudioData preout; ///< pre-output audio data: used for rematrix/resample
|
||||
AudioData out; ///< converted output audio data
|
||||
AudioData in_buffer; ///< cached audio data (convert and resample purpose)
|
||||
AudioData silence; ///< temporary with silence
|
||||
AudioData drop_temp; ///< temporary used to discard output
|
||||
int in_buffer_index; ///< cached buffer position
|
||||
int in_buffer_count; ///< cached buffer length
|
||||
|
||||
Reference in New Issue
Block a user