diff mbox series

[FFmpeg-devel,3/4] fftools/ffprobe: Add const to AVPacket data pointers

Message ID DB6PR0101MB22149B8285B95230816782BD8FBE9@DB6PR0101MB2214.eurprd01.prod.exchangelabs.com
State Accepted
Commit dc977f94d52ee91ce0910d4310f622a043701576
Headers show
Series [FFmpeg-devel,1/4] av(format|device): Add const to muxer packet data pointers | expand


Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt July 4, 2022, 7:15 p.m. UTC
These packets need not be writable (and are not modified by us),
so it is best to access them via const uint8_t*.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
 fftools/ffprobe.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series


diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c
index 5020ba484c..2f110efcb7 100644
--- a/fftools/ffprobe.c
+++ b/fftools/ffprobe.c
@@ -901,7 +901,7 @@  static void writer_print_ts(WriterContext *wctx, const char *key, int64_t ts, in
 static void writer_print_data(WriterContext *wctx, const char *name,
-                              uint8_t *data, int size)
+                              const uint8_t *data, int size)
     AVBPrint bp;
     int offset = 0, l, i;
@@ -929,7 +929,7 @@  static void writer_print_data(WriterContext *wctx, const char *name,
 static void writer_print_data_hash(WriterContext *wctx, const char *name,
-                                   uint8_t *data, int size)
+                                   const uint8_t *data, int size)
     char *p, buf[AV_HASH_MAX_SIZE * 2 + 64] = { 0 };