Originally committed as revision 26373 to svn://svn.ffmpeg.org/ffmpeg/trunk
Showing the changes to libavfilter/avfilter.c (1 of 2 files). Show all
Unified · Split
| @@ -70,6 +70,8 @@ AVFilterBufferRef *avfilter_ref_buffer(AVFilterBufferRef *ref, int pmask) · 69 unmodified lines | ||
| 70 | 70 | |
| 71 | 71 | void avfilter_unref_buffer(AVFilterBufferRef *ref) |
| 72 | 72 | { |
| 73 | + if (!ref) | |
| 74 | + return; | |
| 73 | 75 | if (!(--ref->buf->refcount)) |
| 74 | 76 | ref->buf->free(ref->buf); |
| 75 | 77 | av_free(ref->video); |