diff mbox series

[FFmpeg-devel,v2,03/14] avfilter/vf_readeia608: Use av_dict_set_int()

Message ID AM7PR03MB6660782732CE0A1A1D90643C8FD99@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit f748ca801e7cf2803a5c410a4da511985ec9cb2c
Headers show
Series [FFmpeg-devel,v2,01/14] avfilter/vsrc_testsrc: Deduplicate AVClasses
Related show

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 13, 2021, 11:23 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavfilter/vf_readeia608.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Paul B Mahol Sept. 14, 2021, 5:34 a.m. UTC | #1
lgtm
diff mbox series

Patch

diff --git a/libavfilter/vf_readeia608.c b/libavfilter/vf_readeia608.c
index 2d6d0653a1..5ce2e75213 100644
--- a/libavfilter/vf_readeia608.c
+++ b/libavfilter/vf_readeia608.c
@@ -491,8 +491,7 @@  static int filter_frame(AVFilterLink *inlink, AVFrame *in)
         av_dict_set(&in->metadata, key, value, 0);
 
         snprintf(key, sizeof(key), "lavfi.readeia608.%d.line", nb_found);
-        snprintf(value, sizeof(value), "%d", scan->nb_line);
-        av_dict_set(&in->metadata, key, value, 0);
+        av_dict_set_int(&in->metadata, key, scan->nb_line, 0);
 
         nb_found++;
     }