summaryrefslogtreecommitdiff
path: root/libavcodec/dca_lbr.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-04 11:38:44 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-04 15:03:53 +0200
commit88f9b1fc4546e430a7fcaf6f5f629c1e4b7fe7e0 (patch)
tree30b00629853e7ce9bf32d9437c1f16506b383d06 /libavcodec/dca_lbr.h
parent1fc5d327e412983bc6e0ea5f65b2c5589e814b47 (diff)
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.h')
-rw-r--r--libavcodec/dca_lbr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dca_lbr.h b/libavcodec/dca_lbr.h
index db7a676c31..9e1abec0b4 100644
--- a/libavcodec/dca_lbr.h
+++ b/libavcodec/dca_lbr.h
@@ -124,7 +124,7 @@ typedef struct DCALbrDecoder {
DCADSPContext *dcadsp;
} DCALbrDecoder;
-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);
int ff_dca_lbr_filter_frame(DCALbrDecoder *s, AVFrame *frame);
av_cold void ff_dca_lbr_flush(DCALbrDecoder *s);
av_cold void ff_dca_lbr_init_tables(void);