]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/apngdec.c
avformat/apngdec: Use 64bit for ret to avoid overflow
[ffmpeg] / libavformat / apngdec.c
index a0a475a350f74c67a5f881f3c584f8e27daac68e..6deff3b66ba126bd6323019a992af16504b58f93 100644 (file)
@@ -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)