Check for images with a zero height or width.

Some subtitle images have a zero size, and will make the OCR fail.