diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-07 22:59:22 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-07 22:59:22 +0000 |
commit | 063e7692731798426ef90989211ed7d07f9dc38f (patch) | |
tree | c3ab5ffdff7e1f4562ff89191d725ffd1bb6da3c /libavfilter/formats.c | |
parent | fe59258516ef29e668f414bb78cbf68f2f9cf314 (diff) | |
download | ffmpeg-063e7692731798426ef90989211ed7d07f9dc38f.tar.gz |
Make avfilter_formats_unref(AVFilterFormats **ref) handle the case
when *ref is NULL.
Originally committed as revision 21077 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/formats.c')
-rw-r--r-- | libavfilter/formats.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/formats.c b/libavfilter/formats.c index e558195a1d..e175cd3314 100644 --- a/libavfilter/formats.c +++ b/libavfilter/formats.c @@ -133,6 +133,9 @@ static int find_ref_index(AVFilterFormats **ref) void avfilter_formats_unref(AVFilterFormats **ref) { + if (!*ref) + return; + int idx = find_ref_index(ref); if(idx >= 0) |