aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-08-17 07:16:16 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-08-17 07:16:16 +0200
commit7e5a6225252e87185b6c21aec40e6e6efd70eb3c (patch)
tree870a02f252e1f55844ec3e89183fd4c0650f5b5a
parent3a1ca240d97909a6c26a1c0ce599fd5027e760fe (diff)
downloadffmpeg-7e5a6225252e87185b6c21aec40e6e6efd70eb3c.tar.gz
escape124: Fix long == 64 assumtation.
Found-by: Nicolas Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/escape124.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/escape124.c b/libavcodec/escape124.c
index 0ef16b5b1a..e4cc497af8 100644
--- a/libavcodec/escape124.c
+++ b/libavcodec/escape124.c
@@ -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))