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/pixlet.c | |
parent | d5a0eba8a2481711e708442bcc1d14bf16e9d20b (diff) | |
download | ffmpeg-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/pixlet.c')
-rw-r--r-- | libavcodec/pixlet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/pixlet.c b/libavcodec/pixlet.c index 18a6587257..3174f30e91 100644 --- a/libavcodec/pixlet.c +++ b/libavcodec/pixlet.c @@ -198,7 +198,7 @@ static int read_low_coeffs(AVCodecContext *avctx, int16_t *dst, int size, return get_bits_count(bc) >> 3; } -static int read_high_coeffs(AVCodecContext *avctx, uint8_t *src, int16_t *dst, +static int read_high_coeffs(AVCodecContext *avctx, const uint8_t *src, int16_t *dst, int size, int c, int a, int d, int width, ptrdiff_t stride) { @@ -313,7 +313,7 @@ static int read_high_coeffs(AVCodecContext *avctx, uint8_t *src, int16_t *dst, return get_bits_count(bc) >> 3; } -static int read_highpass(AVCodecContext *avctx, uint8_t *ptr, +static int read_highpass(AVCodecContext *avctx, const uint8_t *ptr, int plane, AVFrame *frame) { PixletContext *ctx = avctx->priv_data; |