Browse Source

avfilter: allow freeing NULL.

this way avfilter_free() can be called without NULL checks.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 13 years ago
parent
commit
c5f9a66f74
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavfilter/avfilter.c

+ 3
- 0
libavfilter/avfilter.c View File

@@ -834,6 +834,9 @@ void avfilter_free(AVFilterContext *filter)
int i;
AVFilterLink *link;

if (!filter)
return;

if (filter->filter->uninit)
filter->filter->uninit(filter);



Loading…
Cancel
Save