diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-04 18:49:37 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-09 19:37:53 +0200 |
commit | 4ad686269d3025a2841b026a82bd26b6a0dd4a3f (patch) | |
tree | 080c22a05c1810fb7e12cceb3439395322468df3 /libavcodec/dfpwmdec.c | |
parent | d5a0eba8a2481711e708442bcc1d14bf16e9d20b (diff) |
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/dfpwmdec.c')
-rw-r--r-- | libavcodec/dfpwmdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/dfpwmdec.c b/libavcodec/dfpwmdec.c index 77c6d2cb18..d013d4c215 100644 --- a/libavcodec/dfpwmdec.c +++ b/libavcodec/dfpwmdec.c @@ -38,7 +38,8 @@ typedef struct { // DFPWM codec from https://github.com/ChenThread/dfpwm/blob/master/1a/ // Licensed in the public domain -static void au_decompress(DFPWMState *state, int fs, int len, uint8_t *outbuf, uint8_t *inbuf) +static void au_decompress(DFPWMState *state, int fs, int len, + uint8_t *outbuf, const uint8_t *inbuf) { unsigned d; for (int i = 0; i < len; i++) { |