From 86f042dcabde2a5386dbd95ab0451b274987d253 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Wed, 24 Jul 2013 12:21:49 +0300 Subject: wtv: Make WTV_SECTOR_BITS a 64 bit constant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes sure that values that are left-shifted by this constant end up casted to 64 bit before shifting, avoiding overflow if the value ends up larger than 2 GB. Signed-off-by: Martin Storsjö --- libavformat/wtv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/wtv.c') diff --git a/libavformat/wtv.c b/libavformat/wtv.c index 8b927466cf..d7f85a7445 100644 --- a/libavformat/wtv.c +++ b/libavformat/wtv.c @@ -48,7 +48,7 @@ * */ -#define WTV_SECTOR_BITS 12 +#define WTV_SECTOR_BITS INT64_C(12) #define WTV_SECTOR_SIZE (1 << WTV_SECTOR_BITS) #define WTV_BIGSECTOR_BITS 18 -- cgit v1.2.3