summaryrefslogtreecommitdiff
path: root/libavcodec/pnmdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-26 00:32:28 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-31 01:14:05 +0200
commit22ca2ef018096ce6019070e2067128dbd2f8d1fc (patch)
tree142068f422f92969193f7a4857ae7af9fe00c01a /libavcodec/pnmdec.c
parentd8388e1b4e3965dd17d6aafbee1438e49cb6a219 (diff)
avcodec/pnmdec, pnm_parser: Improve const-correctness
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/pnmdec.c')
-rw-r--r--libavcodec/pnmdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/pnmdec.c b/libavcodec/pnmdec.c
index bb2ce53496..7cf9886ce7 100644
--- a/libavcodec/pnmdec.c
+++ b/libavcodec/pnmdec.c
@@ -52,8 +52,8 @@ static int pnm_decode_frame(AVCodecContext *avctx, AVFrame *p,
float scale;
s->bytestream_start =
- s->bytestream = (uint8_t *)buf;
- s->bytestream_end = (uint8_t *)buf + buf_size;
+ s->bytestream = buf;
+ s->bytestream_end = buf + buf_size;
if ((ret = ff_pnm_decode_header(avctx, s)) < 0)
return ret;