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 /libavformat/vqf.c | |
parent | c2829dc925ffcc2a5934f3e99360a89fb0a3cad5 (diff) | |
download | ffmpeg-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/vqf.c')
-rw-r--r-- | libavformat/vqf.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavformat/vqf.c b/libavformat/vqf.c index d1ea0b4115..15e8246432 100644 --- a/libavformat/vqf.c +++ b/libavformat/vqf.c @@ -144,11 +144,7 @@ static int vqf_read_header(AVFormatContext *s) break; case MKTAG('D','S','I','Z'): // size of compressed data { - char buf[8] = {0}; - int size = avio_rb32(s->pb); - - snprintf(buf, sizeof(buf), "%d", size); - av_dict_set(&s->metadata, "size", buf, 0); + av_dict_set_int(&s->metadata, "size", avio_rb32(s->pb), 0); } break; case MKTAG('Y','E','A','R'): // recording date |