Browse Source

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.7
Michael Niedermayer 10 years ago
parent
commit
ab6dc86343
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      libavformat/vorbiscomment.c
  2. +1
    -1
      libavformat/vorbiscomment.h

+ 2
- 2
libavformat/vorbiscomment.c View File

@@ -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;


+ 1
- 1
libavformat/vorbiscomment.h View File

@@ -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


Loading…
Cancel
Save