avcodec/fic: Fix return value check