diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-05-26 15:30:10 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-05-28 09:54:54 +0400 |
commit | efcde917af407a6031ecff68edd51fce7b83d104 (patch) | |
tree | d861db7bb7f8d7c3f8cbc28bebdf21e9b268bf75 /libavformat/flacenc.c | |
parent | 23f741f79327e31be7b2a75ebb2e02111e06e52f (diff) |
vorbiscomment: simplify API by using av_dict_count()
Diffstat (limited to 'libavformat/flacenc.c')
-rw-r--r-- | libavformat/flacenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/flacenc.c b/libavformat/flacenc.c index 021891dbc3..0365764605 100644 --- a/libavformat/flacenc.c +++ b/libavformat/flacenc.c @@ -49,12 +49,12 @@ static int flac_write_block_comment(AVIOContext *pb, AVDictionary **m, int last_block, int bitexact) { const char *vendor = bitexact ? "Libav" : LIBAVFORMAT_IDENT; - unsigned int len, count; + unsigned int len; uint8_t *p, *p0; ff_metadata_conv(m, ff_vorbiscomment_metadata_conv, NULL); - len = ff_vorbiscomment_length(*m, vendor, &count); + len = ff_vorbiscomment_length(*m, vendor); p0 = av_malloc(len+4); if (!p0) return AVERROR(ENOMEM); @@ -62,7 +62,7 @@ static int flac_write_block_comment(AVIOContext *pb, AVDictionary **m, bytestream_put_byte(&p, last_block ? 0x84 : 0x04); bytestream_put_be24(&p, len); - ff_vorbiscomment_write(&p, m, vendor, count); + ff_vorbiscomment_write(&p, m, vendor); avio_write(pb, p0, len+4); av_freep(&p0); |