diff --git a/fftools/graph/graphprint.c b/fftools/graph/graphprint.c index 502632acb3..26d2fd381f 100644 --- a/fftools/graph/graphprint.c +++ b/fftools/graph/graphprint.c @@ -963,11 +963,6 @@ int print_filtergraph(FilterGraph *fg, AVFilterGraph *graph) if (ret) return ret; - if (!gpc) { - av_log(NULL, AV_LOG_ERROR, "Failed to initialize graph print context\n"); - return AVERROR(ENOMEM); - } - tfc = gpc->tfc; // Due to the threading model each graph needs to print itself into a buffer @@ -1004,11 +999,6 @@ static int print_filtergraphs_priv(FilterGraph **graphs, int nb_graphs, InputFil if (ret) goto cleanup; - if (!gpc) { - ret = AVERROR(ENOMEM); - goto cleanup; - } - tfc = gpc->tfc; avtext_print_section_header(tfc, NULL, SECTION_ID_ROOT);