From 88f9b1fc4546e430a7fcaf6f5f629c1e4b7fe7e0 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 4 Jul 2022 11:38:44 +0200 Subject: avcodec/dcadec: Treat the input packet's data as const A decoder's input packet need not be writable, so we must not modify the data. Reviewed-by: Paul B Mahol Signed-off-by: Andreas Rheinhardt --- libavcodec/dca_core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/dca_core.h') diff --git a/libavcodec/dca_core.h b/libavcodec/dca_core.h index cb8e38a94b..a01d642e77 100644 --- a/libavcodec/dca_core.h +++ b/libavcodec/dca_core.h @@ -245,8 +245,8 @@ static inline void ff_dca_core_dequantize(int32_t *output, const int32_t *input, } } -int ff_dca_core_parse(DCACoreDecoder *s, uint8_t *data, int size); -int ff_dca_core_parse_exss(DCACoreDecoder *s, uint8_t *data, DCAExssAsset *asset); +int ff_dca_core_parse(DCACoreDecoder *s, const uint8_t *data, int size); +int ff_dca_core_parse_exss(DCACoreDecoder *s, const uint8_t *data, DCAExssAsset *asset); int ff_dca_core_filter_fixed(DCACoreDecoder *s, int x96_synth); int ff_dca_core_filter_frame(DCACoreDecoder *s, AVFrame *frame); av_cold void ff_dca_core_flush(DCACoreDecoder *s); -- cgit v1.2.3