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

Showing the changes to libavfilter/avfilter.c (1 of 2 files). Show all

Unified · Split

libavfilter/avfilter.c+0−3
@@ -188,9 +188,6 @@ AVFilterPicRef *avfilter_get_video_buffer(AVFilterLink *link, int perms, int w, · 187 unmodified lines
188 if(link_dpad(link).get_video_buffer)188 if(link_dpad(link).get_video_buffer)
189 ret = link_dpad(link).get_video_buffer(link, perms, w, h);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 if(!ret)191 if(!ret)
195 ret = avfilter_default_get_video_buffer(link, perms, w, h);192 ret = avfilter_default_get_video_buffer(link, perms, w, h);
196 193

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