ffmpeg: Don't print graphs if there are no outputs yet
Avoids writing an empty json blob in setup error cases.
This commit is contained in:
parent
c18d1b63ab
commit
20502ba92a
1 changed files with 1 additions and 1 deletions
|
|
@ -309,7 +309,7 @@ const AVIOInterruptCB int_cb = { decode_interrupt_cb, NULL };
|
|||
|
||||
static void ffmpeg_cleanup(int ret)
|
||||
{
|
||||
if (print_graphs || print_graphs_file)
|
||||
if ((print_graphs || print_graphs_file) && nb_output_files > 0)
|
||||
print_filtergraphs(filtergraphs, nb_filtergraphs, input_files, nb_input_files, output_files, nb_output_files);
|
||||
|
||||
if (do_benchmark) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue