Commit 80a851aa authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/apngdec: Use 64bit for ret to avoid overflow

Missed this hunk in first commit
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 12987f89
...@@ -150,7 +150,8 @@ static int apng_read_header(AVFormatContext *s) ...@@ -150,7 +150,8 @@ static int apng_read_header(AVFormatContext *s)
AVIOContext *pb = s->pb; AVIOContext *pb = s->pb;
uint32_t len, tag; uint32_t len, tag;
AVStream *st; AVStream *st;
int ret = AVERROR_INVALIDDATA, acTL_found = 0; int acTL_found = 0;
int64_t ret = AVERROR_INVALIDDATA;
/* verify PNGSIG */ /* verify PNGSIG */
if (avio_rb64(pb) != PNGSIG) if (avio_rb64(pb) != PNGSIG)
......
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