Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-10 03:27:04 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-01-10 03:27:04 +0400
commit0b60fc94aab63b80b3a898c744da50758215bc9c (patch)
treeb4d13a99cbede920f983452092ba3d00ccb8888b /libswresample/dither.c
parentead3a2a37e67de617cad33b7e9bdb8ade6ed220f (diff)
swr: reorder the operations in the noise shaping code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/dither.c')
-rw-r--r--libswresample/dither.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libswresample/dither.c b/libswresample/dither.c
index c3bb5609ed..66bf184310 100644
--- a/libswresample/dither.c
+++ b/libswresample/dither.c
@@ -118,6 +118,7 @@ int swri_dither_init(SwrContext *s, enum AVSampleFormat out_fmt, enum AVSampleFo
if (s->dither.method > SWR_DITHER_NS) {
s->dither.noise.bps = 4;
s->dither.noise.fmt = AV_SAMPLE_FMT_FLTP;
+ s->dither.noise_scale = 1;
}
return 0;