diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-20 22:38:14 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-20 22:39:04 +0300 |
commit | 80a851aa5ef2c848449f741365968c8f0ccf4531 (patch) | |
tree | b2a6e5ea8137a39c254d12c053bbfa8dd16a891d | |
parent | 12987f89007ee82b9d3a6090085dfaef8461ab8b (diff) |
avformat/apngdec: Use 64bit for ret to avoid overflow
Missed this hunk in first commit
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/apngdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/apngdec.c b/libavformat/apngdec.c index a0a475a350..6deff3b66b 100644 --- a/libavformat/apngdec.c +++ b/libavformat/apngdec.c @@ -150,7 +150,8 @@ static int apng_read_header(AVFormatContext *s) AVIOContext *pb = s->pb; uint32_t len, tag; AVStream *st; - int ret = AVERROR_INVALIDDATA, acTL_found = 0; + int acTL_found = 0; + int64_t ret = AVERROR_INVALIDDATA; /* verify PNGSIG */ if (avio_rb64(pb) != PNGSIG) |