Fix possible integer overflows
Fix possible integer overflows

ace20022/libbluray,mwgoldsmith/bluray,Azzuro/libbluray,ace20022/libbluray,tourettes/libbluray,mwgoldsmith/bluray,UIKit0/libbluray,tourettes/libbluray,UIKit0/libbluray,Distrotech/libbluray,EdwardNewK/libbluray,EdwardNewK/libbluray,vlc-mirror/libbluray,koying/libbluray,EdwardNewK/libbluray,UIKit0/libbluray,EdwardNewK/libbluray,Distrotech/libbluray,tourettes/libbluray,koying/libbluray,Distrotech/libbluray,ace20022/libbluray,Distrotech/libbluray,Azzuro/libbluray,Azzuro/libbluray,ace20022/libbluray,UIKit0/libbluray,tourettes/libbluray,ShiftMediaProject/libbluray,vlc-mirror/libbluray,mwgoldsmith/bluray,ShiftMediaProject/libbluray,ShiftMediaProject/libbluray,vlc-mirror/libbluray,mwgoldsmith/bluray,koying/libbluray,ShiftMediaProject/libbluray,Azzuro/libbluray,koying/libbluray,vlc-mirror/libbluray