fftools/tf_mermaid: close subgraph header when there are no inputs.

Ensure that the fragment to close the header (`</div>\"]`) is written when the
function `mermaid_print_section_header` is called only once, which happens when
the filtergraph has no inputs.
This commit is contained in:
Ayose
2025-11-24 15:43:51 +00:00
committed by Marton Balint
parent 5717c5c1e1
commit efd6e85abb

View File

@@ -456,6 +456,8 @@ static void mermaid_print_section_footer(AVTextFormatContext *tfc)
} else if ((section->flags & AV_TEXTFORMAT_SECTION_FLAG_IS_SUBGRAPH)) {
mermaid_subgraph_complete_start(mmc, tfc, tfc->level);
MM_INDENT();
writer_put_str(tfc, "end\n");