From 941a82b57c8e69ca72a82695cef97604f5a9e944 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 25 Jul 2022 21:24:43 +0200 Subject: avcodec/dxv: Don't cast const away unnecessarily Signed-off-by: Andreas Rheinhardt --- libavcodec/dxv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dxv.c b/libavcodec/dxv.c index b3df00a5d8..f36454a9f6 100644 --- a/libavcodec/dxv.c +++ b/libavcodec/dxv.c @@ -432,7 +432,7 @@ static int get_opcodes(GetByteContext *gb, uint32_t *table, uint8_t *dst, int op int64_t size_in_bits; unsigned endoffset, newoffset, offset; unsigned next; - uint8_t *src = (uint8_t *)gb->buffer; + const uint8_t *src = gb->buffer; ret = fill_optable(table, optable, nb_elements); if (ret < 0) -- cgit v1.2.3