png_parser: fix size of chunk_lenght
authorVittorio Giovara <vittorio.giovara@gmail.com>
Sun, 9 Nov 2014 07:48:35 +0000 (08:48 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Mon, 12 Jan 2015 23:06:40 +0000 (00:06 +0100)
Fixes the comparison against constant value 0x7fffffff.

CC: libav-stable@libav.org
Bug-Id: CID 1198260

libavcodec/png_parser.c

index d07f288..c66caf3 100644 (file)
@@ -36,7 +36,7 @@ typedef struct PNGParseContext {
     ParseContext pc;
 
     int chunk_pos;          ///< position inside current chunk
-    int chunk_length;       ///< length of the current chunk
+    uint32_t chunk_length;  ///< length of the current chunk
     int remaining_size;     ///< remaining size of the current chunk
 } PNGParseContext;