summaryrefslogtreecommitdiff
path: root/libavfilter/avfiltergraph.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2021-05-18 22:03:11 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2021-05-19 16:58:25 +0200
commit1642d8188d6e475b12ef41ec9b5775e5abadeb0d (patch)
treebe3c9661cb7952a0ab7b71bd47e00ca0c242e327 /libavfilter/avfiltergraph.c
parent2261cc6d8ae57de498d0efb6af61ccf4b101790d (diff)
avfilter/avfiltergraph: Remove NULL checks after dereferences
Fixes: CID1398579 Dereference before null check Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter/avfiltergraph.c')
-rw-r--r--libavfilter/avfiltergraph.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index ed54d3dc11..5389d82d9f 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -1360,8 +1360,8 @@ int avfilter_graph_request_oldest(AVFilterGraph *graph)
if (r != AVERROR_EOF)
break;
av_log(oldest->dst, AV_LOG_DEBUG, "EOF on sink link %s:%s.\n",
- oldest->dst ? oldest->dst->name : "unknown",
- oldest->dstpad ? oldest->dstpad->name : "unknown");
+ oldest->dst->name,
+ oldest->dstpad->name);
/* EOF: remove the link from the heap */
if (oldest->age_index < --graph->sink_links_count)
heap_bubble_down(graph, graph->sink_links[graph->sink_links_count],