You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
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>
This commit is contained in:
@ -1360,8 +1360,8 @@ int avfilter_graph_request_oldest(AVFilterGraph *graph)
|
|||||||
if (r != AVERROR_EOF)
|
if (r != AVERROR_EOF)
|
||||||
break;
|
break;
|
||||||
av_log(oldest->dst, AV_LOG_DEBUG, "EOF on sink link %s:%s.\n",
|
av_log(oldest->dst, AV_LOG_DEBUG, "EOF on sink link %s:%s.\n",
|
||||||
oldest->dst ? oldest->dst->name : "unknown",
|
oldest->dst->name,
|
||||||
oldest->dstpad ? oldest->dstpad->name : "unknown");
|
oldest->dstpad->name);
|
||||||
/* EOF: remove the link from the heap */
|
/* EOF: remove the link from the heap */
|
||||||
if (oldest->age_index < --graph->sink_links_count)
|
if (oldest->age_index < --graph->sink_links_count)
|
||||||
heap_bubble_down(graph, graph->sink_links[graph->sink_links_count],
|
heap_bubble_down(graph, graph->sink_links[graph->sink_links_count],
|
||||||
|
Reference in New Issue
Block a user