From e5a736261bafb1bc5a4c51d614be63e0632b2e96 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 10 Jan 2013 18:51:30 +0100 Subject: 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 --- libswresample/swresample_internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libswresample/swresample_internal.h') 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 { -- cgit v1.2.3