diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-13 20:48:15 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-19 04:39:25 +0200 |
commit | f748ca801e7cf2803a5c410a4da511985ec9cb2c (patch) | |
tree | 29a6a8697066f4dad0d0752bdf5dbc186d1e52e4 /libavfilter/vf_readeia608.c | |
parent | 403d8c01881b58f523ae20bf3a4dc831e2502fd2 (diff) | |
download | ffmpeg-f748ca801e7cf2803a5c410a4da511985ec9cb2c.tar.gz |
avfilter/vf_readeia608: Use av_dict_set_int()
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_readeia608.c')
-rw-r--r-- | libavfilter/vf_readeia608.c | 3 |
1 files changed, 1 insertions, 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++; } |