diff options
author | Anton Khirnov <wyskas@gmail.com> | 2010-10-27 05:02:29 +0000 |
---|---|---|
committer | Anton Khirnov <wyskas@gmail.com> | 2010-10-27 05:02:29 +0000 |
commit | 042ca05f0fdc5f4d56a3e9b94bc9cd67bca9a4bc (patch) | |
tree | 4ffb69760275cb8439ffad13c75c147265c7be7b /libavformat/flacenc.c | |
parent | 47bfe49c649b0ad8fc654de9acfc70971c43a911 (diff) | |
download | ffmpeg-042ca05f0fdc5f4d56a3e9b94bc9cd67bca9a4bc.tar.gz |
vorbiscomment: convert metadata before computing the header's length
Originally committed as revision 25586 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/flacenc.c')
-rw-r--r-- | libavformat/flacenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/flacenc.c b/libavformat/flacenc.c index 996d9f43e0..281d013430 100644 --- a/libavformat/flacenc.c +++ b/libavformat/flacenc.c @@ -46,6 +46,8 @@ static int flac_write_block_comment(ByteIOContext *pb, AVMetadata **m, unsigned int len, count; uint8_t *p, *p0; + ff_metadata_conv(m, ff_vorbiscomment_metadata_conv, NULL); + len = ff_vorbiscomment_length(*m, vendor, &count); p0 = av_malloc(len+4); if (!p0) |