[FFmpeg-cvslog] avcodec/movtextdec: Use const where appropriate

Andreas Rheinhardt git at videolan.org
Sat Dec 11 18:05:19 EET 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Wed Dec  8 15:31:05 2021 +0100| [efd7b35d0688e7ffb0300288b15870b2070ddb69] | committer: Andreas Rheinhardt

avcodec/movtextdec: Use const where appropriate

Reviewed-by: Philip Langdale <philipl at overt.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=efd7b35d0688e7ffb0300288b15870b2070ddb69
---

 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;



More information about the ffmpeg-cvslog mailing list