projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a75c0b
)
png_parser: fix size of chunk_lenght
author
Vittorio Giovara
<vittorio.giovara@gmail.com>
Sun, 9 Nov 2014 07:48:35 +0000
(08:48 +0100)
committer
Vittorio 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
patch
|
blob
|
history
diff --git
a/libavcodec/png_parser.c
b/libavcodec/png_parser.c
index
d07f288
..
c66caf3
100644
(file)
--- 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;