lavfi/video: remove duplicated function ff_null_start_frame_keep_ref()

Semantic for the function ff_null_start_frame() was changed in
07bad27810, and it has now the same behavior of
ff_null_start_frame_keep_ref(), thus it makes no sense to keep both of
them.
This commit is contained in:
Stefano Sabatini 2012-08-02 11:59:57 +02:00
parent 8cac86e091
commit 65520f5933
5 changed files with 4 additions and 10 deletions

View File

@ -100,7 +100,7 @@ AVFilter avfilter_vf_bbox = {
{ .name = "default", { .name = "default",
.type = AVMEDIA_TYPE_VIDEO, .type = AVMEDIA_TYPE_VIDEO,
.get_video_buffer = ff_null_get_video_buffer, .get_video_buffer = ff_null_get_video_buffer,
.start_frame = ff_null_start_frame_keep_ref, .start_frame = ff_null_start_frame,
.end_frame = end_frame, .end_frame = end_frame,
.min_perms = AV_PERM_READ, }, .min_perms = AV_PERM_READ, },
{ .name = NULL } { .name = NULL }

View File

@ -210,7 +210,7 @@ AVFilter avfilter_vf_blackdetect = {
.config_props = config_input, .config_props = config_input,
.draw_slice = draw_slice, .draw_slice = draw_slice,
.get_video_buffer = ff_null_get_video_buffer, .get_video_buffer = ff_null_get_video_buffer,
.start_frame = ff_null_start_frame_keep_ref, .start_frame = ff_null_start_frame,
.end_frame = end_frame, }, .end_frame = end_frame, },
{ .name = NULL } { .name = NULL }
}, },

View File

@ -130,7 +130,7 @@ AVFilter avfilter_vf_blackframe = {
.type = AVMEDIA_TYPE_VIDEO, .type = AVMEDIA_TYPE_VIDEO,
.draw_slice = draw_slice, .draw_slice = draw_slice,
.get_video_buffer = ff_null_get_video_buffer, .get_video_buffer = ff_null_get_video_buffer,
.start_frame = ff_null_start_frame_keep_ref, .start_frame = ff_null_start_frame,
.end_frame = end_frame, }, .end_frame = end_frame, },
{ .name = NULL}}, { .name = NULL}},

View File

@ -94,7 +94,7 @@ AVFilter avfilter_vf_showinfo = {
.inputs = (const AVFilterPad[]) {{ .name = "default", .inputs = (const AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_VIDEO, .type = AVMEDIA_TYPE_VIDEO,
.get_video_buffer = ff_null_get_video_buffer, .get_video_buffer = ff_null_get_video_buffer,
.start_frame = ff_null_start_frame_keep_ref, .start_frame = ff_null_start_frame,
.end_frame = end_frame, .end_frame = end_frame,
.min_perms = AV_PERM_READ, }, .min_perms = AV_PERM_READ, },
{ .name = NULL}}, { .name = NULL}},

View File

@ -282,12 +282,6 @@ int ff_start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
return ret; return ret;
} }
int ff_null_start_frame_keep_ref(AVFilterLink *inlink,
AVFilterBufferRef *picref)
{
return ff_start_frame(inlink->dst->outputs[0], avfilter_ref_buffer(picref, ~0));
}
int ff_null_end_frame(AVFilterLink *link) int ff_null_end_frame(AVFilterLink *link)
{ {
return ff_end_frame(link->dst->outputs[0]); return ff_end_frame(link->dst->outputs[0]);