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/oggenc.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/oggenc.c')
-rw-r--r-- | libavformat/oggenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c index 7ec1b3ee05..8f6ba69307 100644 --- a/libavformat/oggenc.c +++ b/libavformat/oggenc.c @@ -213,6 +213,8 @@ static uint8_t *ogg_write_vorbiscomment(int offset, int bitexact, 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; p = av_mallocz(size); if (!p) |