summaryrefslogtreecommitdiff
path: root/libswresample/swresample_internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-10 18:51:30 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-01-10 18:51:30 +0100
commite5a736261bafb1bc5a4c51d614be63e0632b2e96 (patch)
tree5c9407a8853270b262100d85943105dfe5c6f330 /libswresample/swresample_internal.h
parent2eec98125eadf47d81332014734569f7c1daeb60 (diff)
swr: Use a temporary buffer for dither/Noise shaping when the input is read only
This avoids copying the input 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 1da8d227b3..5046c6bf4c 100644
--- a/libswresample/swresample_internal.h
+++ b/libswresample/swresample_internal.h
@@ -62,6 +62,7 @@ struct DitherContext {
float ns_coeffs[NS_TAPS]; ///< Noise shaping filter coefficients
float ns_errors[SWR_CH_MAX][2*NS_TAPS];
AudioData noise; ///< noise used for dithering
+ AudioData temp; ///< temporary storage when writing into the input buffer isnt possible
};
struct SwrContext {