[FFmpeg-cvslog] avformat/vorbiscomment: Use 64bit int for ff_vorbiscomment_length()

Michael Niedermayer git at videolan.org
Mon May 11 16:14:43 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon May 11 15:39:35 2015 +0200| [ab6dc863436361311eb2a2d3de692c7de4837d59] | committer: Michael Niedermayer

avformat/vorbiscomment: Use 64bit int for ff_vorbiscomment_length()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ab6dc863436361311eb2a2d3de692c7de4837d59
---

 libavformat/vorbiscomment.c |    4 ++--
 libavformat/vorbiscomment.h |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavformat/vorbiscomment.c b/libavformat/vorbiscomment.c
index e953d83..575dd13 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 f4212d2..e0d30b1 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



More information about the ffmpeg-cvslog mailing list