[FFmpeg-cvslog] r20444 - in trunk/libavfilter: avfilter.c avfilter.h
stefano
subversion
Tue Nov 3 23:15:52 CET 2009
Author: stefano
Date: Tue Nov 3 23:15:52 2009
New Revision: 20444
Log:
Make avfilter_get_video_buffer() use
avfilter_default_get_video_buffer() if the get_video_buffer() callback
is not defined in a filter.
Libavfilter filters author have to explicitely define the
get_video_buffer() callback if they want the buffer to be requested to
the filter following in the filterchain.
See the thread:
"[FFmpeg-devel] [PATCH] Make avfilter_get_video_buffer() use
default_get_video_buffer if callback not defined".
Modified:
trunk/libavfilter/avfilter.c
trunk/libavfilter/avfilter.h
Modified: trunk/libavfilter/avfilter.c
==============================================================================
--- trunk/libavfilter/avfilter.c Tue Nov 3 23:04:55 2009 (r20443)
+++ trunk/libavfilter/avfilter.c Tue Nov 3 23:15:52 2009 (r20444)
@@ -188,9 +188,6 @@ AVFilterPicRef *avfilter_get_video_buffe
if(link_dpad(link).get_video_buffer)
ret = link_dpad(link).get_video_buffer(link, perms, w, h);
- if(!ret && link->dst->output_count)
- ret = avfilter_get_video_buffer(link->dst->outputs[0], perms, w, h);
-
if(!ret)
ret = avfilter_default_get_video_buffer(link, perms, w, h);
Modified: trunk/libavfilter/avfilter.h
==============================================================================
--- trunk/libavfilter/avfilter.h Tue Nov 3 23:04:55 2009 (r20443)
+++ trunk/libavfilter/avfilter.h Tue Nov 3 23:15:52 2009 (r20444)
@@ -24,7 +24,7 @@
#define LIBAVFILTER_VERSION_MAJOR 1
#define LIBAVFILTER_VERSION_MINOR 6
-#define LIBAVFILTER_VERSION_MICRO 0
+#define LIBAVFILTER_VERSION_MICRO 1
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
LIBAVFILTER_VERSION_MINOR, \
@@ -288,7 +288,7 @@ struct AVFilterPad
/**
* Callback function to get a buffer. If NULL, the filter system will
- * handle buffer requests.
+ * use avfilter_default_get_video_buffer().
*
* Input video pads only.
*/
More information about the ffmpeg-cvslog
mailing list