rpi: Avoid getting stuck in hw accelerated image decoder if image is corrupt