X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fflacdec.c;h=9b1e4280b68f2cbaf26d57429bfe96d6f352f4c1;hb=c4fb79a3db1abaee16406667745a64d5b6c8ab94;hp=f1316658e7804ec2012d27819f4940230fbd9b3f;hpb=8d6b51b18206a133d985f4cc065945b696ed5058;p=ffmpeg diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c index f1316658e78..9b1e4280b68 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); }