Fix potential overflow in H.323