mpegencts: Fix overflow in cbr mode period calculations