png_parser: fix size of chunk_lenght

Fixes the comparison against constant value 0x7fffffff.

CC: libav-stable@libav.org
Bug-Id: CID 1198260
pull/95/head
Vittorio Giovara 10 years ago
parent 443502aed8
commit 60b0551334
  1. 2
      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;

Loading…
Cancel
Save