summaryrefslogtreecommitdiff
path: root/libavcodec/png_parser.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-11-09 08:48:35 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-11-11 11:49:54 +0100
commit60b055133485891405722bc9722e2c74fc9764b8 (patch)
tree47004ea81089d022298f8a4e4b6bba4e8da45d51 /libavcodec/png_parser.c
parent443502aed8b814d883825e52e91e4f018955aa66 (diff)
png_parser: fix size of chunk_lenght
Fixes the comparison against constant value 0x7fffffff. CC: libav-stable@libav.org Bug-Id: CID 1198260
Diffstat (limited to 'libavcodec/png_parser.c')
-rw-r--r--libavcodec/png_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/png_parser.c b/libavcodec/png_parser.c
index d07f288c4b..c66caf31a3 100644
--- a/libavcodec/png_parser.c
+++ b/libavcodec/png_parser.c
@@ -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;