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/xbmenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavcodec/xbmenc.c') diff --git a/libavcodec/xbmenc.c b/libavcodec/xbmenc.c index 60fb169457..8369f5370c 100644 --- a/libavcodec/xbmenc.c +++ b/libavcodec/xbmenc.c @@ -32,7 +32,8 @@ static int xbm_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *p, int *got_packet) { int i, j, l, commas, ret, size, linesize, lineout, rowsout; - uint8_t *ptr, *buf; + const uint8_t *ptr; + uint8_t *buf; linesize = lineout = (avctx->width + 7) / 8; commas = avctx->height * linesize; -- cgit v1.2.3