[FFmpeg-cvslog] r26373 - in trunk/libavfilter: avfilter.c avfilter.h
stefano
subversion
Sat Jan 15 18:21:15 CET 2011
Author: stefano
Date: Sat Jan 15 18:21:15 2011
New Revision: 26373
Log:
Make avfilter_unref_buffer() accept a NULL parameter.
Modified:
trunk/libavfilter/avfilter.c
trunk/libavfilter/avfilter.h
Modified: trunk/libavfilter/avfilter.c
==============================================================================
--- trunk/libavfilter/avfilter.c Sat Jan 15 18:21:12 2011 (r26372)
+++ trunk/libavfilter/avfilter.c Sat Jan 15 18:21:15 2011 (r26373)
@@ -70,6 +70,8 @@ AVFilterBufferRef *avfilter_ref_buffer(A
void avfilter_unref_buffer(AVFilterBufferRef *ref)
{
+ if (!ref)
+ return;
if (!(--ref->buf->refcount))
ref->buf->free(ref->buf);
av_free(ref->video);
Modified: trunk/libavfilter/avfilter.h
==============================================================================
--- trunk/libavfilter/avfilter.h Sat Jan 15 18:21:12 2011 (r26372)
+++ trunk/libavfilter/avfilter.h Sat Jan 15 18:21:15 2011 (r26373)
@@ -28,7 +28,7 @@
#define LIBAVFILTER_VERSION_MAJOR 1
#define LIBAVFILTER_VERSION_MINOR 73
-#define LIBAVFILTER_VERSION_MICRO 1
+#define LIBAVFILTER_VERSION_MICRO 2
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
LIBAVFILTER_VERSION_MINOR, \
@@ -177,7 +177,7 @@ AVFilterBufferRef *avfilter_ref_buffer(A
* Remove a reference to a buffer. If this is the last reference to the
* buffer, the buffer itself is also automatically freed.
*
- * @param ref reference to the buffer
+ * @param ref reference to the buffer, may be NULL
*/
void avfilter_unref_buffer(AVFilterBufferRef *ref);
More information about the ffmpeg-cvslog
mailing list