From 0cd22fd7523a285ecfdf5a92531a8a6a59dfa6c0 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 22 Sep 2018 18:14:03 +0200 Subject: [PATCH] avcodec/prosumer: mark src as const Reviewed-by: Paul B Mahol Signed-off-by: Michael Niedermayer --- libavcodec/prosumer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/prosumer.c b/libavcodec/prosumer.c index b7e417aa0b..9eb3c18cae 100644 --- a/libavcodec/prosumer.c +++ b/libavcodec/prosumer.c @@ -132,7 +132,7 @@ static int decompress(GetByteContext *gb, int size, PutByteContext *pb, const ui return 0; } -static void do_shift(uint32_t *dst, int offset, uint32_t *src, int stride, int height) +static void do_shift(uint32_t *dst, int offset, const uint32_t *src, int stride, int height) { uint32_t x = (0x7F7F7F7F >> 1) & 0x7F7F7F7F; @@ -174,7 +174,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, uint8_t *y = &frame->data[0][i * frame->linesize[0]]; uint8_t *u = &frame->data[1][i * frame->linesize[1]]; uint8_t *v = &frame->data[2][i * frame->linesize[2]]; - uint8_t *src = s->decbuffer + (avctx->height - 1 - i) * s->stride; + const uint8_t *src = s->decbuffer + (avctx->height - 1 - i) * s->stride; for (int j = 0; j < avctx->width; j += 8) { *(u++) = *src++;