avcodec/fic: Fail on invalid slice size/off