diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-04 11:38:44 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-04 15:03:53 +0200 |
commit | 88f9b1fc4546e430a7fcaf6f5f629c1e4b7fe7e0 (patch) | |
tree | 30b00629853e7ce9bf32d9437c1f16506b383d06 /libavcodec/dca_lbr.c | |
parent | 1fc5d327e412983bc6e0ea5f65b2c5589e814b47 (diff) | |
download | ffmpeg-88f9b1fc4546e430a7fcaf6f5f629c1e4b7fe7e0.tar.gz |
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 <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/dca_lbr.c')
-rw-r--r-- | libavcodec/dca_lbr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dca_lbr.c b/libavcodec/dca_lbr.c index 06c10b96f5..2b8594cd75 100644 --- a/libavcodec/dca_lbr.c +++ b/libavcodec/dca_lbr.c @@ -1156,7 +1156,7 @@ static int parse_decoder_init(DCALbrDecoder *s, GetByteContext *gb) return 0; } -int ff_dca_lbr_parse(DCALbrDecoder *s, uint8_t *data, DCAExssAsset *asset) +int ff_dca_lbr_parse(DCALbrDecoder *s, const uint8_t *data, DCAExssAsset *asset) { struct { LBRChunk lfe; |