From ab6dc863436361311eb2a2d3de692c7de4837d59 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 11 May 2015 15:39:35 +0200 Subject: [PATCH] avformat/vorbiscomment: Use 64bit int for ff_vorbiscomment_length() Signed-off-by: Michael Niedermayer --- 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 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