aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/flacenc.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2014-11-13 13:47:55 -0300
committerJames Almer <jamrial@gmail.com>2014-11-13 13:47:55 -0300
commit3cec54b7d72bc594b28faa7b8fb6683ef397fe66 (patch)
tree19bc6828a49c0b4d45512c81e9204eb5242b6593 /libavcodec/flacenc.c
parent2093c1dc51ee1c08cb558759a1c59e6d1e3358a0 (diff)
downloadffmpeg-3cec54b7d72bc594b28faa7b8fb6683ef397fe66.tar.gz
x86/flacdsp: add SSE2 and AVX decorrelate functions
Two to four times faster depending on instruction set, block size and channel count.
Diffstat (limited to 'libavcodec/flacenc.c')
-rw-r--r--libavcodec/flacenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c
index 3b72888966..e66ef3db5e 100644
--- a/libavcodec/flacenc.c
+++ b/libavcodec/flacenc.c
@@ -428,7 +428,7 @@ static av_cold int flac_encode_init(AVCodecContext *avctx)
s->options.max_prediction_order, FF_LPC_TYPE_LEVINSON);
ff_bswapdsp_init(&s->bdsp);
- ff_flacdsp_init(&s->flac_dsp, avctx->sample_fmt,
+ ff_flacdsp_init(&s->flac_dsp, avctx->sample_fmt, channels,
avctx->bits_per_raw_sample);
dprint_compression_options(s);