ffmpeg | branch: master | Marvin Scholz <epira...@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 <softwo...@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;
         }

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to