diff options
author | James Almer <jamrial@gmail.com> | 2014-11-13 19:47:55 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2014-11-13 19:47:55 +0300 |
commit | 3cec54b7d72bc594b28faa7b8fb6683ef397fe66 (patch) | |
tree | 19bc6828a49c0b4d45512c81e9204eb5242b6593 /libavcodec/flacdec.c | |
parent | 2093c1dc51ee1c08cb558759a1c59e6d1e3358a0 (diff) |
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/flacdec.c')
-rw-r--r-- | libavcodec/flacdec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c index f1316658e7..9b1e4280b6 100644 --- a/libavcodec/flacdec.c +++ b/libavcodec/flacdec.c @@ -111,7 +111,7 @@ static av_cold int flac_decode_init(AVCodecContext *avctx) if (ret < 0) return ret; flac_set_bps(s); - ff_flacdsp_init(&s->dsp, avctx->sample_fmt, s->bps); + ff_flacdsp_init(&s->dsp, avctx->sample_fmt, s->channels, s->bps); s->got_streaminfo = 1; return 0; @@ -173,7 +173,7 @@ static int parse_streaminfo(FLACContext *s, const uint8_t *buf, int buf_size) if (ret < 0) return ret; flac_set_bps(s); - ff_flacdsp_init(&s->dsp, s->avctx->sample_fmt, s->bps); + ff_flacdsp_init(&s->dsp, s->avctx->sample_fmt, s->channels, s->bps); s->got_streaminfo = 1; return 0; @@ -472,7 +472,7 @@ static int decode_frame(FLACContext *s) ret = allocate_buffers(s); if (ret < 0) return ret; - ff_flacdsp_init(&s->dsp, s->avctx->sample_fmt, s->bps); + ff_flacdsp_init(&s->dsp, s->avctx->sample_fmt, s->channels, s->bps); s->got_streaminfo = 1; dump_headers(s->avctx, (FLACStreaminfo *)s); } |