summaryrefslogtreecommitdiff
path: root/libswresample/swresample_internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-13 15:21:33 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-01-13 15:28:00 +0100
commitdc6588421e09d755655e5def870b2ebed515bc9d (patch)
tree70a5cacac7dba56203815a6b1be48672d8946ed4 /libswresample/swresample_internal.h
parent98247e3368fb34eefa8fd4b3ec87e8a564d940bd (diff)
downloadffmpeg-dc6588421e09d755655e5def870b2ebed515bc9d.tar.gz
swr: move buffer used to discard sample to context
This avoids the need to allocate & free to repeatly Fixes Ticket2122 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/swresample_internal.h')
-rw-r--r--libswresample/swresample_internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libswresample/swresample_internal.h b/libswresample/swresample_internal.h
index 5046c6bf4c..cfbad52e90 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 drop_temp; ///< temporary used to discard output
int in_buffer_index; ///< cached buffer position
int in_buffer_count; ///< cached buffer length
int resample_in_constraint; ///< 1 if the input end was reach before the output end, 0 otherwise