[FFmpeg-devel] [PATCH 3/6] avcodec/movtextdec: Use const where appropriate

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Wed Dec 8 22:23:56 EET 2021


Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 libavcodec/movtextdec.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/movtextdec.c b/libavcodec/movtextdec.c
index 5083308d58..001df6a5a1 100644
--- a/libavcodec/movtextdec.c
+++ b/libavcodec/movtextdec.c
@@ -481,8 +481,7 @@ static int mov_text_decode_frame(AVCodecContext *avctx,
     MovTextContext *m = avctx->priv_data;
     int ret;
     AVBPrint buf;
-    char *ptr = avpkt->data;
-    char *end;
+    const char *ptr = avpkt->data, *end;
     int text_length, tsmb_type, ret_tsmb;
     uint64_t tsmb_size;
     const uint8_t *tsmb;
-- 
2.32.0



More information about the ffmpeg-devel mailing list