1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

fftools/textformat: remove leftover comments in mermaid_print_value

Remove some leftover commented code and an extraneous semicolon.

Reviewed-by: softworkz <softworkz@hotmail.com>
This commit is contained in:
Marvin Scholz
2025-06-26 23:18:04 +02:00
parent 0578d4ad2f
commit 7771a4eecb

View File

@ -575,7 +575,7 @@ static void mermaid_print_value(AVTextFormatContext *tfc, const char *key,
} }
if (section->linktype_key && !strcmp(section->linktype_key, key)) { if (section->linktype_key && !strcmp(section->linktype_key, key)) {
mmc->section_data[tfc->level].link_type = (AVTextFormatLinkType)num;; mmc->section_data[tfc->level].link_type = (AVTextFormatLinkType)num;
exit = 1; exit = 1;
} }
@ -590,10 +590,7 @@ static void mermaid_print_value(AVTextFormatContext *tfc, const char *key,
if (is_int) { if (is_int) {
writer_printf(tfc, "<span class=\"%s\">%s: %"PRId64"</span>", key, key, num); writer_printf(tfc, "<span class=\"%s\">%s: %"PRId64"</span>", key, key, num);
} else { } else {
////AVBPrint b;
////av_bprint_init(&b, 0, AV_BPRINT_SIZE_UNLIMITED);
const char *tmp = av_strireplace(str, "\"", "'"); const char *tmp = av_strireplace(str, "\"", "'");
////av_bprint_escape(&b, str, NULL, AV_ESCAPE_MODE_AUTO, AV_ESCAPE_FLAG_STRICT);
writer_printf(tfc, "<span class=\"%s\">%s</span>", key, tmp); writer_printf(tfc, "<span class=\"%s\">%s</span>", key, tmp);
av_freep(&tmp); av_freep(&tmp);
} }