You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-05-21 16:47:28 +02:00
Use the new null callbacks to simplify filters and reduce duplicated code.
Originally committed as revision 22595 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -156,12 +156,6 @@ static int config_output(AVFilterLink *link)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static AVFilterPicRef *get_video_buffer(AVFilterLink *link, int perms,
|
||||
int w, int h)
|
||||
{
|
||||
return avfilter_get_video_buffer(link->dst->outputs[0], perms, w, h);
|
||||
}
|
||||
|
||||
static void start_frame(AVFilterLink *link, AVFilterPicRef *picref)
|
||||
{
|
||||
CropContext *crop = link->dst->priv;
|
||||
@@ -223,7 +217,7 @@ AVFilter avfilter_vf_crop = {
|
||||
.type = CODEC_TYPE_VIDEO,
|
||||
.start_frame = start_frame,
|
||||
.draw_slice = draw_slice,
|
||||
.get_video_buffer = get_video_buffer,
|
||||
.get_video_buffer = avfilter_null_get_video_buffer,
|
||||
.config_props = config_input, },
|
||||
{ .name = NULL}},
|
||||
.outputs = (AVFilterPad[]) {{ .name = "default",
|
||||
|
||||
Reference in New Issue
Block a user