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
Showing the changes to libavfilter/avfilter.c (1 of 2 files). Show all
Unified · Split
| @@ -188,9 +188,6 @@ AVFilterPicRef *avfilter_get_video_buffer(AVFilterLink *link, int perms, int w, · 187 unmodified lines | ||
| 188 | 188 | if(link_dpad(link).get_video_buffer) |
| 189 | 189 | ret = link_dpad(link).get_video_buffer(link, perms, w, h); |
| 190 | 190 | |
| 191 | − if(!ret && link->dst->output_count) | |
| 192 | − ret = avfilter_get_video_buffer(link->dst->outputs[0], perms, w, h); | |
| 193 | − | |
| 194 | 191 | if(!ret) |
| 195 | 192 | ret = avfilter_default_get_video_buffer(link, perms, w, h); |
| 196 | 193 | |