OSDN Git Service

wtv: Make WTV_SECTOR_BITS a 64 bit constant
authorMartin Storsjö <martin@martin.st>
Wed, 24 Jul 2013 09:21:49 +0000 (12:21 +0300)
committerMartin Storsjö <martin@martin.st>
Fri, 26 Jul 2013 20:05:14 +0000 (23:05 +0300)
commit86f042dcabde2a5386dbd95ab0451b274987d253
tree53a1ab58dee915b9814920629c0f512c69d5805f
parent80ade7985cd95156e2156f50adc7b86d0e43a07a
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>
libavformat/wtv.c