diff mbox series

[FFmpeg-devel,1/2] avformat/isom: make the parameter used for loging in ff_mp4_read_descr() a pointer to void

Message ID 20240830011333.4032-1-jamrial@gmail.com
State New
Headers show
Series [FFmpeg-devel,1/2] avformat/isom: make the parameter used for loging in ff_mp4_read_descr() a pointer to void | expand

Checks

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

James Almer Aug. 30, 2024, 1:13 a.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavformat/isom.c | 4 ++--
 libavformat/isom.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/isom.c b/libavformat/isom.c
index 74bb13dc96..65d71ed9d0 100644
--- a/libavformat/isom.c
+++ b/libavformat/isom.c
@@ -292,12 +292,12 @@  int ff_mp4_read_descr_len(AVIOContext *pb)
     return len;
 }
 
-int ff_mp4_read_descr(AVFormatContext *fc, AVIOContext *pb, int *tag)
+int ff_mp4_read_descr(void *logctx, AVIOContext *pb, int *tag)
 {
     int len;
     *tag = avio_r8(pb);
     len = ff_mp4_read_descr_len(pb);
-    av_log(fc, AV_LOG_TRACE, "MPEG-4 description: tag=0x%02x len=%d\n", *tag, len);
+    av_log(logctx, AV_LOG_TRACE, "MPEG-4 description: tag=0x%02x len=%d\n", *tag, len);
     return len;
 }
 
diff --git a/libavformat/isom.h b/libavformat/isom.h
index 5b6125a908..ceb3aa2f49 100644
--- a/libavformat/isom.h
+++ b/libavformat/isom.h
@@ -363,7 +363,7 @@  typedef struct MOVContext {
 } MOVContext;
 
 int ff_mp4_read_descr_len(AVIOContext *pb);
-int ff_mp4_read_descr(AVFormatContext *fc, AVIOContext *pb, int *tag);
+int ff_mp4_read_descr(void *logctx, AVIOContext *pb, int *tag);
 int ff_mp4_read_dec_config_descr(AVFormatContext *fc, AVStream *st, AVIOContext *pb);
 void ff_mp4_parse_es_descr(AVIOContext *pb, int *es_id);