escape124: Fix long == 64 assumtation.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 17 Aug 2012 05:16:16 +0000 (07:16 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 17 Aug 2012 05:16:16 +0000 (07:16 +0200)
Found-by: Nicolas
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/escape124.c

index 0ef16b5..e4cc497 100644 (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))