diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-11 15:39:35 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-11 15:56:16 +0200 |
commit | ab6dc863436361311eb2a2d3de692c7de4837d59 (patch) | |
tree | 0ab1d312b49dcdadce60d67b52ac872652b5cfed | |
parent | 66f26b3e8ec075298e7ba329a55893d085bafe96 (diff) | |
download | ffmpeg-ab6dc863436361311eb2a2d3de692c7de4837d59.tar.gz |
avformat/vorbiscomment: Use 64bit int for ff_vorbiscomment_length()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/vorbiscomment.c | 4 | ||||
-rw-r--r-- | libavformat/vorbiscomment.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/vorbiscomment.c b/libavformat/vorbiscomment.c index e953d83d65..575dd13328 100644 --- a/libavformat/vorbiscomment.c +++ b/libavformat/vorbiscomment.c @@ -38,9 +38,9 @@ const AVMetadataConv ff_vorbiscomment_metadata_conv[] = { { 0 } }; -int ff_vorbiscomment_length(AVDictionary *m, const char *vendor_string) +int64_t ff_vorbiscomment_length(AVDictionary *m, const char *vendor_string) { - int len = 8; + int64_t len = 8; len += strlen(vendor_string); if (m) { AVDictionaryEntry *tag = NULL; diff --git a/libavformat/vorbiscomment.h b/libavformat/vorbiscomment.h index f4212d2632..e0d30b14a7 100644 --- a/libavformat/vorbiscomment.h +++ b/libavformat/vorbiscomment.h @@ -34,7 +34,7 @@ * For no string, set to an empty string. * @return The length in bytes. */ -int ff_vorbiscomment_length(AVDictionary *m, const char *vendor_string); +int64_t ff_vorbiscomment_length(AVDictionary *m, const char *vendor_string); /** * Write a VorbisComment into a buffer. The buffer, p, must have enough |