Make avfilter_unref_buffer() accept a NULL parameter.

Originally committed as revision 26373 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Stefano Sabatini
2011-01-15 17:21:15 +00:00
parent 24d13ebc15
commit 6baf4afa99
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -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);