diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-13 15:26:04 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-13 15:28:00 +0100 |
commit | db4e0ecaf0e945a8a4688eee8307953d53e9e030 (patch) | |
tree | 4f76bcdab24c3ab8d3cef633052406ce8128ad55 /libswresample/swresample_internal.h | |
parent | dc6588421e09d755655e5def870b2ebed515bc9d (diff) | |
download | ffmpeg-db4e0ecaf0e945a8a4688eee8307953d53e9e030.tar.gz |
swr: move silence buffer to context to avoid per use malloc/free
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/swresample_internal.h')
-rw-r--r-- | libswresample/swresample_internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libswresample/swresample_internal.h b/libswresample/swresample_internal.h index cfbad52e90..be332d0039 100644 --- a/libswresample/swresample_internal.h +++ b/libswresample/swresample_internal.h @@ -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 |