You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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:
@@ -834,6 +834,9 @@ void avfilter_free(AVFilterContext *filter)
|
||||
int i;
|
||||
AVFilterLink *link;
|
||||
|
||||
if (!filter)
|
||||
return;
|
||||
|
||||
if (filter->filter->uninit)
|
||||
filter->filter->uninit(filter);
|
||||
|
||||
|
Reference in New Issue
Block a user