diff options
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 6ecd4ce..4fbb6bf 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); |