VP8: use a goto to break out of two loops