diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-12-02 18:13:49 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-12-02 18:13:49 +0100 |
commit | 5148147b26f55c9e172adcd1acd774240659aa92 (patch) | |
tree | d9dfa651b45e48b9605951071b86dc1b163db5a6 /libavfilter/vf_bbox.c | |
parent | 255be0734d9293309b42d8029d2004ec3732c8bc (diff) | |
download | ffmpeg-5148147b26f55c9e172adcd1acd774240659aa92.tar.gz |
lavfi/bbox: switch to ff_filter_frame() API
Diffstat (limited to 'libavfilter/vf_bbox.c')
-rw-r--r-- | libavfilter/vf_bbox.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libavfilter/vf_bbox.c b/libavfilter/vf_bbox.c index 698456d7b1..33b96b5608 100644 --- a/libavfilter/vf_bbox.c +++ b/libavfilter/vf_bbox.c @@ -56,11 +56,10 @@ static int query_formats(AVFilterContext *ctx) return 0; } -static int end_frame(AVFilterLink *inlink) +static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *picref) { AVFilterContext *ctx = inlink->dst; BBoxContext *bbox = ctx->priv; - AVFilterBufferRef *picref = inlink->cur_buf; FFBoundingBox box; int has_bbox, w, h; @@ -86,7 +85,7 @@ static int end_frame(AVFilterLink *inlink) av_log(ctx, AV_LOG_INFO, "\n"); bbox->frame++; - return ff_end_frame(inlink->dst->outputs[0]); + return ff_filter_frame(inlink->dst->outputs[0], picref); } static const AVFilterPad bbox_inputs[] = { @@ -94,8 +93,7 @@ static const AVFilterPad bbox_inputs[] = { .name = "default", .type = AVMEDIA_TYPE_VIDEO, .get_video_buffer = ff_null_get_video_buffer, - .start_frame = ff_null_start_frame, - .end_frame = end_frame, + .filter_frame = filter_frame, .min_perms = AV_PERM_READ, }, { NULL } |