summaryrefslogtreecommitdiff
path: root/libavformat/cinedec.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2014-07-29 21:10:39 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2014-08-16 14:31:41 +0200
commita0941c8a2b3e55dc4482c874523afcb7ed6e93e6 (patch)
tree9e472048b168454605936246a7aeab4c0bade8f6 /libavformat/cinedec.c
parentc2829dc925ffcc2a5934f3e99360a89fb0a3cad5 (diff)
downloadffmpeg-a0941c8a2b3e55dc4482c874523afcb7ed6e93e6.tar.gz
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 'libavformat/cinedec.c')
-rw-r--r--libavformat/cinedec.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/cinedec.c b/libavformat/cinedec.c
index 372088495e..7daf0e0190 100644
--- a/libavformat/cinedec.c
+++ b/libavformat/cinedec.c
@@ -73,9 +73,7 @@ static int cine_read_probe(AVProbeData *p)
static int set_metadata_int(AVDictionary **dict, const char *key, int value)
{
if (value) {
- char buf[64];
- snprintf(buf, sizeof(buf), "%i", value);
- return av_dict_set(dict, key, buf, 0);
+ return av_dict_set_int(dict, key, value, 0);
}
return 0;
}