aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/cpia.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-04 18:49:37 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-09 19:37:53 +0200
commit4ad686269d3025a2841b026a82bd26b6a0dd4a3f (patch)
tree080c22a05c1810fb7e12cceb3439395322468df3 /libavcodec/cpia.c
parentd5a0eba8a2481711e708442bcc1d14bf16e9d20b (diff)
downloadffmpeg-4ad686269d3025a2841b026a82bd26b6a0dd4a3f.tar.gz
avcodec: Add const to decoder packet data pointers
The packets given to decoder need not be writable, so it is best to access them via const uint8_t*. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/cpia.c')
-rw-r--r--libavcodec/cpia.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/cpia.c b/libavcodec/cpia.c
index 2f4ad1fb5b..fcf2621e61 100644
--- a/libavcodec/cpia.c
+++ b/libavcodec/cpia.c
@@ -54,8 +54,8 @@ static int cpia_decode_frame(AVCodecContext *avctx, AVFrame *rframe,
CpiaContext* const cpia = avctx->priv_data;
int i,j,ret;
- uint8_t* const header = avpkt->data;
- uint8_t* src;
+ const uint8_t *const header = avpkt->data;
+ const uint8_t *src;
int src_size;
uint16_t linelength;
uint8_t skip;