[FFmpeg-devel] [PATCH v2 03/11] avformat/dump: print the indicator for AV_DISPOSITION_CAPTIONS_EIA608

Marth64 marth64 at proxyid.net
Thu Nov 28 03:15:06 EET 2024


It is added at the beginning since the presence of the
substream is significant.

Signed-off-by: Marth64 <marth64 at proxyid.net>
---
 libavformat/dump.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/dump.c b/libavformat/dump.c
index b7125a652f..81a5e033cb 100644
--- a/libavformat/dump.c
+++ b/libavformat/dump.c
@@ -552,6 +552,8 @@ static void dump_sidedata(void *ctx, const AVPacketSideData *side_data, int nb_s
 
 static void dump_disposition(int disposition, int log_level)
 {
+    if (disposition & AV_DISPOSITION_CAPTIONS_EIA608)
+        av_log(NULL, log_level, " (Closed Captions)");
     if (disposition & AV_DISPOSITION_DEFAULT)
         av_log(NULL, log_level, " (default)");
     if (disposition & AV_DISPOSITION_DUB)
-- 
2.34.1



More information about the ffmpeg-devel mailing list