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

Marvin Scholz git at videolan.org
Sat Jul 5 03:35:22 EEST 2025


ffmpeg | branch: master | Marvin Scholz <epirat07 at gmail.com> | Thu Jun 26 23:30:02 2025 +0200| [05094c1749f15b1274f554df687b354116f0acc3] | committer: Marvin Scholz

fftools/textformat: remove unreachable code in tf_mermaid

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

Fix CID 1646948

Reviewed-by: softworkz <softworkz at hotmail.com>

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

 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;
         }



More information about the ffmpeg-cvslog mailing list