mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter: allow freeing NULL.
this way avfilter_free() can be called without NULL checks. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a79af8e8cb
commit
c5f9a66f74
|
@ -834,6 +834,9 @@ void avfilter_free(AVFilterContext *filter)
|
||||||
int i;
|
int i;
|
||||||
AVFilterLink *link;
|
AVFilterLink *link;
|
||||||
|
|
||||||
|
if (!filter)
|
||||||
|
return;
|
||||||
|
|
||||||
if (filter->filter->uninit)
|
if (filter->filter->uninit)
|
||||||
filter->filter->uninit(filter);
|
filter->filter->uninit(filter);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue