mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-12 10:29:39 +00:00
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>
This commit is contained in:
parent
80ade7985c
commit
86f042dcab
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user