[FFmpeg-cvslog] png_parser: fix size of chunk_lenght
Vittorio Giovara
git at videolan.org
Sun Jan 18 01:58:59 CET 2015
ffmpeg | branch: release/2.4 | Vittorio Giovara <vittorio.giovara at gmail.com> | Sun Nov 9 08:48:35 2014 +0100| [4edbb0955e043d698dcc1b5073b6e714f9cc7960] | committer: Vittorio Giovara
png_parser: fix size of chunk_lenght
Fixes the comparison against constant value 0x7fffffff.
CC: libav-stable at libav.org
Bug-Id: CID 1198260
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4edbb0955e043d698dcc1b5073b6e714f9cc7960
---
libavcodec/png_parser.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/png_parser.c b/libavcodec/png_parser.c
index d07f288..c66caf3 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;
More information about the ffmpeg-cvslog
mailing list