History

Make avfilter_graph_free() do nothing if graph is NULL.

Originally committed as revision 26323 to svn://svn.ffmpeg.org/ffmpeg/trunk

Stefano Sabatini committed 15 years ago

Commit caeb0c31 parent b382d1e3 files · +4 −2Browse files

Showing the changes to libavfilter/avfiltergraph.c (1 of 3 files). Show all

Unified · Split

libavfilter/avfiltergraph.c+2−0
@@ -34,6 +34,8 @@ AVFilterGraph *avfilter_graph_alloc(void) · 33 unmodified lines
34 34
35void avfilter_graph_free(AVFilterGraph *graph)35void avfilter_graph_free(AVFilterGraph *graph)
36{36{
37 if (!graph)
38 return;
37 for (; graph->filter_count > 0; graph->filter_count --)39 for (; graph->filter_count > 0; graph->filter_count --)
38 avfilter_free(graph->filters[graph->filter_count - 1]);40 avfilter_free(graph->filters[graph->filter_count - 1]);
39 av_freep(&graph->scale_sws_opts);41 av_freep(&graph->scale_sws_opts);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t