diff options
author | Anton Khirnov <wyskas@gmail.com> | 2010-10-14 19:08:31 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2010-10-14 19:08:31 +0000 |
commit | 81e5ff7ae2f69ac6873bfbdcdaddf0fabd653d15 (patch) | |
tree | cee5176e8aa763c0c3768ff09e26ef0f3cab1d3e /libavformat/vorbiscomment.c | |
parent | da7548585e1ed0fdb1c337c2f07ab313c99122a5 (diff) | |
download | ffmpeg-81e5ff7ae2f69ac6873bfbdcdaddf0fabd653d15.tar.gz |
vorbiscomment: change ff_vorbiscomment_write to take an AVMetadata**
patch by Anton Khirnov anton _at_ khirnov _dot_ net
Originally committed as revision 25473 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/vorbiscomment.c')
-rw-r--r-- | libavformat/vorbiscomment.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/vorbiscomment.c b/libavformat/vorbiscomment.c index a0f1c8817d..59a403f209 100644 --- a/libavformat/vorbiscomment.c +++ b/libavformat/vorbiscomment.c @@ -52,15 +52,15 @@ int ff_vorbiscomment_length(AVMetadata *m, const char *vendor_string, return len; } -int ff_vorbiscomment_write(uint8_t **p, AVMetadata *m, +int ff_vorbiscomment_write(uint8_t **p, AVMetadata **m, const char *vendor_string, const unsigned count) { bytestream_put_le32(p, strlen(vendor_string)); bytestream_put_buffer(p, vendor_string, strlen(vendor_string)); - if (m) { + if (*m) { AVMetadataTag *tag = NULL; bytestream_put_le32(p, count); - while ((tag = av_metadata_get(m, "", tag, AV_METADATA_IGNORE_SUFFIX))) { + while ((tag = av_metadata_get(*m, "", tag, AV_METADATA_IGNORE_SUFFIX))) { unsigned int len1 = strlen(tag->key); unsigned int len2 = strlen(tag->value); bytestream_put_le32(p, len1+1+len2); |