diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-12-26 19:29:44 +0100 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-12-26 21:30:45 +0100 |
commit | 33e0eb510912e61db94f23b2b78442babff60104 (patch) | |
tree | cefc6fa98f8f64d91f392ca2e4476f533b8c04cb /libavfilter/video.c | |
parent | 011169cd41ec6004a61611a9efba0b6778d78ff6 (diff) | |
download | ffmpeg-33e0eb510912e61db94f23b2b78442babff60104.tar.gz |
lavfi/video: remove unused ff_inplace_start_frame().
Diffstat (limited to 'libavfilter/video.c')
-rw-r--r-- | libavfilter/video.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/libavfilter/video.c b/libavfilter/video.c index 9bbf6f9971..e619db1eb4 100644 --- a/libavfilter/video.c +++ b/libavfilter/video.c @@ -159,42 +159,6 @@ AVFilterBufferRef *ff_get_video_buffer(AVFilterLink *link, int perms, int w, int return ret; } -// for filters that support (but don't require) outpic==inpic -int ff_inplace_start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref) -{ - AVFilterLink *outlink = inlink->dst->outputs[0]; - AVFilterBufferRef *outpicref = NULL, *for_next_filter; - int ret = 0; - - if (inpicref->perms & AV_PERM_WRITE) { - outpicref = avfilter_ref_buffer(inpicref, ~0); - if (!outpicref) - return AVERROR(ENOMEM); - } else { - outpicref = ff_get_video_buffer(outlink, AV_PERM_WRITE, outlink->w, outlink->h); - if (!outpicref) - return AVERROR(ENOMEM); - - avfilter_copy_buffer_ref_props(outpicref, inpicref); - outpicref->video->w = outlink->w; - outpicref->video->h = outlink->h; - } - - for_next_filter = avfilter_ref_buffer(outpicref, ~0); - if (for_next_filter) - ret = ff_start_frame(outlink, for_next_filter); - else - ret = AVERROR(ENOMEM); - - if (ret < 0) { - avfilter_unref_bufferp(&outpicref); - return ret; - } - - outlink->out_buf = outpicref; - return 0; -} - static int default_start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref) { AVFilterLink *outlink = NULL; |