summaryrefslogtreecommitdiff
path: root/libswresample/dither.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-08-18 11:44:42 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-08-18 11:50:14 +0200
commit946acacdcdff7eb9ac6430691ac6121516da9083 (patch)
treec17e67a81c3e4f93302f78a99dae8a75c06cb59b /libswresample/dither.c
parentf866f22c3f581d776d1592f337809fb4a8036564 (diff)
swresample: move dither init up
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libswresample/dither.c')
-rw-r--r--libswresample/dither.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/libswresample/dither.c b/libswresample/dither.c
index 08c793d4cf..76f8ccf2c6 100644
--- a/libswresample/dither.c
+++ b/libswresample/dither.c
@@ -123,15 +123,6 @@ av_cold int swri_dither_init(SwrContext *s, enum AVSampleFormat out_fmt, enum AV
s->dither.method = SWR_DITHER_TRIANGULAR_HIGHPASS;
}
- av_assert0(!s->preout.count);
- s->dither.noise = s->preout;
- s->dither.temp = s->preout;
- 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;
}