avcodec/fic: Check input size against minimal frame size