History

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". Originally committed as revision 20444 to svn://svn.ffmpeg.org/ffmpeg/trunk

Stefano Sabatini committed 17 years ago

Commit da23d421 parent ae2abc62 files · +2 −5Browse files

Unified · Split

2 files
  1. libavfilter/avfilter.c +0 −3
  2. libavfilter/avfilter.h +2 −2
libavfilter/avfilter.c+0−3
@@ -188,9 +188,6 @@ AVFilterPicRef *avfilter_get_video_buffer(AVFilterLink *link, int perms, int w, · 187 unmodified lines
188188 if(link_dpad(link).get_video_buffer)
189189 ret = link_dpad(link).get_video_buffer(link, perms, w, h);
190190
191− if(!ret && link->dst->output_count)
192− ret = avfilter_get_video_buffer(link->dst->outputs[0], perms, w, h);
193−
194191 if(!ret)
195192 ret = avfilter_default_get_video_buffer(link, perms, w, h);
196193
libavfilter/avfilter.h+2−2
@@ -24,7 +24,7 @@ · 23 unmodified lines
2424
2525 #define LIBAVFILTER_VERSION_MAJOR 1
2626 #define LIBAVFILTER_VERSION_MINOR 6
27−#define LIBAVFILTER_VERSION_MICRO 0
27+#define LIBAVFILTER_VERSION_MICRO 1
2828
2929 #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
3030 LIBAVFILTER_VERSION_MINOR, \
@@ -288,7 +288,7 @@ struct AVFilterPad · 257 unmodified lines
288288
289289 /**
290290 * Callback function to get a buffer. If NULL, the filter system will
291− * handle buffer requests.
291+ * use avfilter_default_get_video_buffer().
292292 *
293293 * Input video pads only.
294294 */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t