[FFmpeg-cvslog] avfilter/vf_readeia608: Use av_dict_set_int()

Andreas Rheinhardt git at videolan.org
Sun Sep 19 06:14:22 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Sep 13 20:48:15 2021 +0200| [f748ca801e7cf2803a5c410a4da511985ec9cb2c] | committer: Andreas Rheinhardt

avfilter/vf_readeia608: Use av_dict_set_int()

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f748ca801e7cf2803a5c410a4da511985ec9cb2c
---

 libavfilter/vf_readeia608.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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++;
     }



More information about the ffmpeg-cvslog mailing list