From a0941c8a2b3e55dc4482c874523afcb7ed6e93e6 Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Tue, 29 Jul 2014 21:10:39 +0200 Subject: Use new av_dict_set_int helper function. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Get rid of the many, slightly differing, implementations of basically the same thing. Signed-off-by: Reimar Döffinger --- libavformat/vqf.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'libavformat/vqf.c') 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 -- cgit v1.2.3