[FFmpeg-cvslog] escape124: Fix long == 64 assumtation.
Michael Niedermayer
git at videolan.org
Fri Aug 17 07:29:52 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Aug 17 07:16:16 2012 +0200| [7e5a6225252e87185b6c21aec40e6e6efd70eb3c] | committer: Michael Niedermayer
escape124: Fix long == 64 assumtation.
Found-by: Nicolas
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7e5a6225252e87185b6c21aec40e6e6efd70eb3c
---
libavcodec/escape124.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/escape124.c b/libavcodec/escape124.c
index 0ef16b5..e4cc497 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))
More information about the ffmpeg-cvslog
mailing list