diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-10 18:51:30 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-10 18:51:30 +0100 |
commit | e5a736261bafb1bc5a4c51d614be63e0632b2e96 (patch) | |
tree | 5c9407a8853270b262100d85943105dfe5c6f330 /libswresample/swresample_internal.h | |
parent | 2eec98125eadf47d81332014734569f7c1daeb60 (diff) | |
download | ffmpeg-e5a736261bafb1bc5a4c51d614be63e0632b2e96.tar.gz |
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.h | 1 |
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 { |