Browse code

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

Missed this hunk in first commit

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2015/02/21 04:38:14
Showing 1 changed files
... ...
@@ -150,7 +150,8 @@ static int apng_read_header(AVFormatContext *s)
150 150
     AVIOContext *pb = s->pb;
151 151
     uint32_t len, tag;
152 152
     AVStream *st;
153
-    int ret = AVERROR_INVALIDDATA, acTL_found = 0;
153
+    int acTL_found = 0;
154
+    int64_t ret = AVERROR_INVALIDDATA;
154 155
 
155 156
     /* verify PNGSIG */
156 157
     if (avio_rb64(pb) != PNGSIG)