[FFmpeg-devel] [PATCH] fftools/textformat: remove unreachable code in tf_mermaid

Marvin Scholz epirat07 at gmail.com
Fri Jun 27 00:32:50 EEST 2025


Integer writing is impossible here as the first branch was dead code,
so remove it completely.

Fix CID 1646948
---
 fftools/textformat/tf_mermaid.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/fftools/textformat/tf_mermaid.c b/fftools/textformat/tf_mermaid.c
index 3d864c2e3e..6af58d58c2 100644
--- a/fftools/textformat/tf_mermaid.c
+++ b/fftools/textformat/tf_mermaid.c
@@ -616,10 +616,7 @@ static void mermaid_print_value(AVTextFormatContext *tfc, const char *key,
 
                 MM_INDENT();
 
-                if (is_int)
-                    writer_printf(tfc, "    %s %"PRId64" %s\n", key, num, col_type);
-                else
-                    writer_printf(tfc, "    %s %s %s\n", key, str, col_type);
+                writer_printf(tfc, "    %s %s %s\n", key, str, col_type);
             }
             break;
         }
-- 
2.39.5 (Apple Git-154)



More information about the ffmpeg-devel mailing list