mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
fftools/graph/graphprint: Remove always-false checks
init_graphprint() already returns an error upon allocation failure. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user