aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/y41pdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-04 12:03:01 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-04 15:04:01 +0200
commit930e560da3c608955818c757edad26ebd71f4305 (patch)
tree90d8a242fd13e662cc721169a4b6a8d3316959a4 /libavcodec/y41pdec.c
parent88f9b1fc4546e430a7fcaf6f5f629c1e4b7fe7e0 (diff)
downloadffmpeg-930e560da3c608955818c757edad26ebd71f4305.tar.gz
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 <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/y41pdec.c')
-rw-r--r--libavcodec/y41pdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/y41pdec.c b/libavcodec/y41pdec.c
index ca81dda0e8..4b1e64aff9 100644
--- a/libavcodec/y41pdec.c
+++ b/libavcodec/y41pdec.c
@@ -39,7 +39,7 @@ static av_cold int y41p_decode_init(AVCodecContext *avctx)
static int y41p_decode_frame(AVCodecContext *avctx, AVFrame *pic,
int *got_frame, AVPacket *avpkt)
{
- uint8_t *src = avpkt->data;
+ const uint8_t *src = avpkt->data;
uint8_t *y, *u, *v;
int i, j, ret;