ffmpeg | branch: master | Michael Niedermayer <mich...@niedermayer.cc> | Sat Sep 22 18:14:03 2018 +0200| [0cd22fd7523a285ecfdf5a92531a8a6a59dfa6c0] | committer: Michael Niedermayer
avcodec/prosumer: mark src as const Reviewed-by: Paul B Mahol <one...@gmail.com> Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0cd22fd7523a285ecfdf5a92531a8a6a59dfa6c0 --- 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++; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog