diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-01 03:07:46 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-05 03:28:45 +0200 |
commit | 6c4595190e7ef5cc2a3652ed4a604e46f7e37ac6 (patch) | |
tree | 4496e75ccd6748940b1e46fc4d59905f597373d8 /libavcodec/flacenc.c | |
parent | 3a869cd5cdc8c64ce93a98284029a162bd9f0e6e (diff) | |
download | ffmpeg-6c4595190e7ef5cc2a3652ed4a604e46f7e37ac6.tar.gz |
avcodec/flacdsp: Split encoder-only parts into a ctx of its own
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/flacenc.c')
-rw-r--r-- | libavcodec/flacenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c index 3cfefbc89f..00f78fc814 100644 --- a/libavcodec/flacenc.c +++ b/libavcodec/flacenc.c @@ -36,7 +36,7 @@ #include "lpc.h" #include "flac.h" #include "flacdata.h" -#include "flacdsp.h" +#include "flacencdsp.h" #define FLAC_SUBFRAME_CONSTANT 0 #define FLAC_SUBFRAME_VERBATIM 1 @@ -125,7 +125,7 @@ typedef struct FlacEncodeContext { uint8_t *md5_buffer; unsigned int md5_buffer_size; BswapDSPContext bdsp; - FLACDSPContext flac_dsp; + FLACEncDSPContext flac_dsp; int flushed; int64_t next_pts; @@ -425,7 +425,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, channels); + ff_flacencdsp_init(&s->flac_dsp); dprint_compression_options(s); |