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:
parent
24d13ebc15
commit
6baf4afa99
2 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue