mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/apngdec: Use 64bit for ret to avoid overflow
Missed this hunk in first commit
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 80a851aa5e
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
727730e279
commit
4ef32aa2a6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue