summaryrefslogtreecommitdiff
path: root/libavformat/oggenc.c
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2010-10-27 05:02:29 +0000
committerAnton Khirnov <wyskas@gmail.com>2010-10-27 05:02:29 +0000
commit042ca05f0fdc5f4d56a3e9b94bc9cd67bca9a4bc (patch)
tree4ffb69760275cb8439ffad13c75c147265c7be7b /libavformat/oggenc.c
parent47bfe49c649b0ad8fc654de9acfc70971c43a911 (diff)
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.c2
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)