diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-04 12:03:01 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-04 15:04:01 +0200 |
commit | 930e560da3c608955818c757edad26ebd71f4305 (patch) | |
tree | 90d8a242fd13e662cc721169a4b6a8d3316959a4 /libavcodec/diracdec.c | |
parent | 88f9b1fc4546e430a7fcaf6f5f629c1e4b7fe7e0 (diff) | |
download | ffmpeg-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/diracdec.c')
-rw-r--r-- | libavcodec/diracdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/diracdec.c b/libavcodec/diracdec.c index 9f3c930913..50d1d2e1d3 100644 --- a/libavcodec/diracdec.c +++ b/libavcodec/diracdec.c @@ -2264,7 +2264,7 @@ static int dirac_decode_frame(AVCodecContext *avctx, AVFrame *picture, int *got_frame, AVPacket *pkt) { DiracContext *s = avctx->priv_data; - uint8_t *buf = pkt->data; + const uint8_t *buf = pkt->data; int buf_size = pkt->size; int i, buf_idx = 0; int ret; |