From 1fc5d327e412983bc6e0ea5f65b2c5589e814b47 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 4 Jul 2022 11:24:44 +0200 Subject: avformat/(mpeg|mpegts|mxf|sup)enc: Use const uint8_t* to access pkt data The packets muxers receive are not guaranteed to be writable, so they must not be modified. Ergo only access the packet's data via a const uint8_t*. Reviewed-by: Paul B Mahol Signed-off-by: Andreas Rheinhardt --- libavformat/supenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/supenc.c') diff --git a/libavformat/supenc.c b/libavformat/supenc.c index 1ca19fa161..c45d8a5321 100644 --- a/libavformat/supenc.c +++ b/libavformat/supenc.c @@ -27,7 +27,7 @@ static int sup_write_packet(AVFormatContext *s, AVPacket *pkt) { - uint8_t *data = pkt->data; + const uint8_t *data = pkt->data; size_t size = pkt->size; uint32_t pts = 0, dts = 0; -- cgit v1.2.3