From 930e560da3c608955818c757edad26ebd71f4305 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 4 Jul 2022 12:03:01 +0200 Subject: avcodec/decoders: Use const uint8_t* to access input packet data These packets need not be writable, so we must not modify them. Reviewed-by: Paul B Mahol Signed-off-by: Andreas Rheinhardt --- libavcodec/v410dec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/v410dec.c') diff --git a/libavcodec/v410dec.c b/libavcodec/v410dec.c index f6d675c508..e67cb820ba 100644 --- a/libavcodec/v410dec.c +++ b/libavcodec/v410dec.c @@ -28,7 +28,7 @@ typedef struct ThreadData { AVFrame *frame; - uint8_t *buf; + const uint8_t *buf; int stride; } ThreadData; @@ -89,7 +89,7 @@ static int v410_decode_frame(AVCodecContext *avctx, AVFrame *pic, int *got_frame, AVPacket *avpkt) { ThreadData td; - uint8_t *src = avpkt->data; + const uint8_t *src = avpkt->data; int ret; int thread_count = av_clip(avctx->thread_count, 1, avctx->height/4); -- cgit v1.2.3