Commit 084bd109 authored by Michael Niedermayer's avatar Michael Niedermayer

id3v2: fix variable type for uncompress()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7e09fe15
...@@ -486,7 +486,7 @@ static void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t ...@@ -486,7 +486,7 @@ static void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t
int tunsync = 0; int tunsync = 0;
int tcomp = 0; int tcomp = 0;
int tencr = 0; int tencr = 0;
int dlen; unsigned long dlen;
if (isv34) { if (isv34) {
avio_read(s->pb, tag, 4); avio_read(s->pb, tag, 4);
...@@ -547,14 +547,14 @@ static void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t ...@@ -547,14 +547,14 @@ static void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t
av_fast_malloc(&buffer, &buffer_size, dlen); av_fast_malloc(&buffer, &buffer_size, dlen);
if (!buffer) { if (!buffer) {
av_log(s, AV_LOG_ERROR, "Failed to alloc %d bytes\n", dlen); av_log(s, AV_LOG_ERROR, "Failed to alloc %ld bytes\n", dlen);
goto seek; goto seek;
} }
#if CONFIG_ZLIB #if CONFIG_ZLIB
if (tcomp) { if (tcomp) {
int n, err; int n, err;
av_log(s, AV_LOG_DEBUG, "Compresssed frame %s tlen=%d dlen=%d\n", tag, tlen, dlen); av_log(s, AV_LOG_DEBUG, "Compresssed frame %s tlen=%d dlen=%ld\n", tag, tlen, dlen);
av_fast_malloc(&compressed_buffer, &compressed_buffer_size, tlen); av_fast_malloc(&compressed_buffer, &compressed_buffer_size, tlen);
if (!compressed_buffer) { if (!compressed_buffer) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment