summaryrefslogtreecommitdiff
path: root/libavformat/oggenc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-05-26 13:30:10 +0200
committerAnton Khirnov <anton@khirnov.net>2014-05-28 07:54:54 +0200
commitefcde917af407a6031ecff68edd51fce7b83d104 (patch)
treed861db7bb7f8d7c3f8cbc28bebdf21e9b268bf75 /libavformat/oggenc.c
parent23f741f79327e31be7b2a75ebb2e02111e06e52f (diff)
vorbiscomment: simplify API by using av_dict_count()
Diffstat (limited to 'libavformat/oggenc.c')
-rw-r--r--libavformat/oggenc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c
index e082a7e48a..97aba34a69 100644
--- a/libavformat/oggenc.c
+++ b/libavformat/oggenc.c
@@ -273,18 +273,17 @@ static uint8_t *ogg_write_vorbiscomment(int offset, int bitexact,
const char *vendor = bitexact ? "Libav" : LIBAVFORMAT_IDENT;
int size;
uint8_t *p, *p0;
- unsigned int count;
ff_metadata_conv(m, ff_vorbiscomment_metadata_conv, NULL);
- size = offset + ff_vorbiscomment_length(*m, vendor, &count) + framing_bit;
+ size = offset + ff_vorbiscomment_length(*m, vendor) + framing_bit;
p = av_mallocz(size);
if (!p)
return NULL;
p0 = p;
p += offset;
- ff_vorbiscomment_write(&p, m, vendor, count);
+ ff_vorbiscomment_write(&p, m, vendor);
if (framing_bit)
bytestream_put_byte(&p, 1);