diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2014-07-29 21:10:39 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2014-08-16 14:31:41 +0200 |
commit | a0941c8a2b3e55dc4482c874523afcb7ed6e93e6 (patch) | |
tree | 9e472048b168454605936246a7aeab4c0bade8f6 /libavfilter/vf_bbox.c | |
parent | c2829dc925ffcc2a5934f3e99360a89fb0a3cad5 (diff) |
Use new av_dict_set_int helper function.
Get rid of the many, slightly differing, implementations
of basically the same thing.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavfilter/vf_bbox.c')
-rw-r--r-- | libavfilter/vf_bbox.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavfilter/vf_bbox.c b/libavfilter/vf_bbox.c index 6c6aab140e..1e6feff508 100644 --- a/libavfilter/vf_bbox.c +++ b/libavfilter/vf_bbox.c @@ -61,8 +61,7 @@ static int query_formats(AVFilterContext *ctx) } #define SET_META(key, value) \ - snprintf(buf, sizeof(buf), "%d", value); \ - av_dict_set(metadata, key, buf, 0); + av_dict_set_int(metadata, key, value, 0); static int filter_frame(AVFilterLink *inlink, AVFrame *frame) { @@ -70,7 +69,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) BBoxContext *bbox = ctx->priv; FFBoundingBox box; int has_bbox, w, h; - char buf[32]; has_bbox = ff_calculate_bounding_box(&box, |