aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-07-24 12:21:49 +0300
committerMartin Storsjö <martin@martin.st>2013-07-26 23:05:14 +0300
commit86f042dcabde2a5386dbd95ab0451b274987d253 (patch)
tree53a1ab58dee915b9814920629c0f512c69d5805f /libavformat
parent80ade7985cd95156e2156f50adc7b86d0e43a07a (diff)
downloadffmpeg-86f042dcabde2a5386dbd95ab0451b274987d253.tar.gz
wtv: Make WTV_SECTOR_BITS a 64 bit constant
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ö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/wtv.c2
1 files changed, 1 insertions, 1 deletions
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