aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/prosumer.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-09-22 18:14:03 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2018-09-24 00:49:30 +0200
commit0cd22fd7523a285ecfdf5a92531a8a6a59dfa6c0 (patch)
tree3c8affbb6374fef0fe66e5a92a0cfd612a7b97e2 /libavcodec/prosumer.c
parent3c9ebcbc4dceef385e20e76704bf3c2e370b9368 (diff)
downloadffmpeg-0cd22fd7523a285ecfdf5a92531a8a6a59dfa6c0.tar.gz
avcodec/prosumer: mark src as const
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/prosumer.c')
-rw-r--r--libavcodec/prosumer.c4
1 files 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++;