avcodec/fic: fix slice checks