diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-01-15 17:21:15 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-01-15 17:21:15 +0000 |
commit | 6baf4afa9969eea23cd4ec9b0cec3b7aed1f49af (patch) | |
tree | 2b2470166a85177b3abe2075ca9444590b603c36 /libavfilter/avfilter.c | |
parent | 24d13ebc15ea429607ccbd52819947162981d333 (diff) | |
download | ffmpeg-6baf4afa9969eea23cd4ec9b0cec3b7aed1f49af.tar.gz |
Make avfilter_unref_buffer() accept a NULL parameter.
Originally committed as revision 26373 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r-- | libavfilter/avfilter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 6ecd4ce4c2..4fbb6bf4a6 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -70,6 +70,8 @@ AVFilterBufferRef *avfilter_ref_buffer(AVFilterBufferRef *ref, int pmask) void avfilter_unref_buffer(AVFilterBufferRef *ref) { + if (!ref) + return; if (!(--ref->buf->refcount)) ref->buf->free(ref->buf); av_free(ref->video); |