Browse Source

escape124: Fix long == 64 assumtation.

Found-by: Nicolas
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.0
Michael Niedermayer 13 years ago
parent
commit
7e5a622525
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/escape124.c

+ 1
- 1
libavcodec/escape124.c View File

@@ -90,7 +90,7 @@ static CodeBook unpack_codebook(GetBitContext* gb, unsigned depth,
unsigned i, j;
CodeBook cb = { 0 };

if (!can_safely_read(gb, size * 34L))
if (!can_safely_read(gb, (uint64_t)size * 34))
return cb;

if (size >= INT_MAX / sizeof(MacroBlock))


Loading…
Cancel
Save