From 5828e8209f48f206c42b69e314a6988b50e98924 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 26 Jul 2022 09:09:44 +0200 Subject: avcodec: Constify frame->data pointers for encoders where possible Signed-off-by: Andreas Rheinhardt --- libavcodec/bmpenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavcodec/bmpenc.c') diff --git a/libavcodec/bmpenc.c b/libavcodec/bmpenc.c index 78f64edb1c..964f7cc2ad 100644 --- a/libavcodec/bmpenc.c +++ b/libavcodec/bmpenc.c @@ -72,7 +72,8 @@ static int bmp_encode_frame(AVCodecContext *avctx, AVPacket *pkt, uint32_t palette256[256]; int pad_bytes_per_row, pal_entries = 0, compression = BMP_RGB; int bit_count = avctx->bits_per_coded_sample; - uint8_t *ptr, *buf; + const uint8_t *ptr; + uint8_t *buf; switch (avctx->pix_fmt) { case AV_PIX_FMT_RGB444: -- cgit v1.2.3