diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-02-24 19:05:54 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-02-24 20:31:56 +0100 |
commit | 8b3affda87e45165bd7d968a8cad82fe700f60b7 (patch) | |
tree | cc4dc3a3a0045ed097d310b5099a470768335c1b /libswresample/swresample_internal.h | |
parent | c4c702b6d3b42b5ae25d96982f283b4028a83574 (diff) | |
download | ffmpeg-8b3affda87e45165bd7d968a8cad82fe700f60b7.tar.gz |
swr: support a seperate output sample bits.
This avoids user apps having to mangle dither scale. for pcm24
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 3f8090481b..17b85d5263 100644 --- a/libswresample/swresample_internal.h +++ b/libswresample/swresample_internal.h @@ -63,6 +63,7 @@ struct DitherContext { 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 + int output_sample_bits; ///< the number of used output bits, needed to scale dither correctly }; struct SwrContext { |